clang-tools 20.0.0git
|
PragmaCommentHandler parses pragma comment on include files to determine when we should include a different header from the header that directly defines a symbol. More...
#include <PragmaCommentHandler.h>
Public Member Functions | |
PragmaCommentHandler (HeaderMapCollector *Collector) | |
bool | HandleComment (Preprocessor &PP, SourceRange Range) override |
PragmaCommentHandler parses pragma comment on include files to determine when we should include a different header from the header that directly defines a symbol.
Currently it only supports IWYU private pragma: https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-private
Definition at line 27 of file PragmaCommentHandler.h.
|
inline |
Definition at line 29 of file PragmaCommentHandler.h.
|
override |
Definition at line 21 of file PragmaCommentHandler.cpp.
References clang::find_all_symbols::HeaderMapCollector::addHeaderMapping(), Pos, Range, and Text.