clang-tools 22.0.0git
clang::find_all_symbols::PragmaCommentHandler Class Reference

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>

Inheritance diagram for clang::find_all_symbols::PragmaCommentHandler:
[legend]

Public Member Functions

 PragmaCommentHandler (HeaderMapCollector *Collector)
bool HandleComment (Preprocessor &PP, SourceRange Range) override

Detailed Description

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.

Constructor & Destructor Documentation

◆ PragmaCommentHandler()

clang::find_all_symbols::PragmaCommentHandler::PragmaCommentHandler ( HeaderMapCollector * Collector)
inline

Definition at line 29 of file PragmaCommentHandler.h.

Member Function Documentation

◆ HandleComment()

bool clang::find_all_symbols::PragmaCommentHandler::HandleComment ( Preprocessor & PP,
SourceRange Range )
override

Definition at line 21 of file PragmaCommentHandler.cpp.


The documentation for this class was generated from the following files: