clang 20.0.0git
|
Stores additional source code information like skipped ranges which is required by the coverage mapping generator and is obtained from the preprocessor. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CoverageMappingGen.h"
Public Member Functions | |
CoverageSourceInfo (SourceManager &SourceMgr) | |
std::vector< SkippedRange > & | getSkippedRanges () |
void | AddSkippedRange (SourceRange Range, SkippedRange::Kind RangeKind) |
void | SourceRangeSkipped (SourceRange Range, SourceLocation EndifLoc) override |
Hook called when a source range is skipped. | |
void | HandleEmptyline (SourceRange Range) override |
bool | HandleComment (Preprocessor &PP, SourceRange Range) override |
void | updateNextTokLoc (SourceLocation Loc) |
![]() | |
virtual | ~PPCallbacks () |
virtual void | FileChanged (SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID=FileID()) |
Callback invoked whenever a source file is entered or exited. | |
virtual void | LexedFileChanged (FileID FID, LexedFileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID, SourceLocation Loc) |
Callback invoked whenever the Lexer moves to a different file for lexing. | |
virtual void | FileSkipped (const FileEntryRef &SkippedFile, const Token &FilenameTok, SrcMgr::CharacteristicKind FileType) |
Callback invoked whenever a source file is skipped as the result of header guard optimization. | |
virtual bool | EmbedFileNotFound (StringRef FileName) |
Callback invoked whenever the preprocessor cannot find a file for an embed directive. | |
virtual void | EmbedDirective (SourceLocation HashLoc, StringRef FileName, bool IsAngled, OptionalFileEntryRef File, const LexEmbedParametersResult &Params) |
Callback invoked whenever an embed directive has been processed, regardless of whether the embed will actually find a file. | |
virtual bool | FileNotFound (StringRef FileName) |
Callback invoked whenever the preprocessor cannot find a file for an inclusion directive. | |
virtual void | InclusionDirective (SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, bool IsAngled, CharSourceRange FilenameRange, OptionalFileEntryRef File, StringRef SearchPath, StringRef RelativePath, const Module *SuggestedModule, bool ModuleImported, SrcMgr::CharacteristicKind FileType) |
Callback invoked whenever an inclusion directive of any kind (#include , #import , etc.) has been processed, regardless of whether the inclusion will actually result in an inclusion. | |
virtual void | EnteredSubmodule (Module *M, |