Quuxplusone added a comment.

Given that the goal is to get `include-what-you-use` to stop suggesting that 
users `#include <__detail/fooimpl.h>` when what they want is spelled `<foo.h>`, 
I think what's desired here (if anything) would be a pragma targeted at 
`include-what-you-use` (and other tools). Basically

  // in __detail/fooimpl.h
  #pragma clang public_header "foo.h"

This pragma can mostly be ignored by Clang; it's just up to those other tools 
to consume these pragmas and report the correct public header.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105439/new/

https://reviews.llvm.org/D105439

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to