clang-tools 20.0.0git
Public Member Functions | List of all members
clang::tidy::modernize::MacroToEnumCallbacks Class Reference
Inheritance diagram for clang::tidy::modernize::MacroToEnumCallbacks:
Inheritance graph
[legend]

Public Member Functions

 MacroToEnumCallbacks (MacroToEnumCheck *Check, const LangOptions &LangOptions, const SourceManager &SM)
 
void FileChanged (SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) override
 
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) override
 
void MacroDefined (const Token &MacroNameTok, const MacroDirective *MD) override
 
void MacroUndefined (const Token &MacroNameTok, const MacroDefinition &MD, const MacroDirective *Undef) override
 
void If (SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue) override
 
void Ifndef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override
 
void Ifdef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override
 
void Elif (SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) override
 
void Elifdef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override
 
void Elifdef (SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) override
 
void Elifndef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override
 
void Elifndef (SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) override
 
void Endif (SourceLocation Loc, SourceLocation IfLoc) override
 
void PragmaDirective (SourceLocation Loc, PragmaIntroducerKind Introducer) override
 
void EndOfMainFile () override
 
void invalidateRange (SourceRange Range)
 

Detailed Description

Definition at line 106 of file MacroToEnumCheck.cpp.

Constructor & Destructor Documentation

◆ MacroToEnumCallbacks()

clang::tidy::modernize::MacroToEnumCallbacks::MacroToEnumCallbacks ( MacroToEnumCheck Check,
const LangOptions &  LangOptions,
const SourceManager &  SM 
)
inline

Definition at line 108 of file MacroToEnumCheck.cpp.

Member Function Documentation

◆ Elif()

void clang::tidy::modernize::MacroToEnumCallbacks::Elif ( SourceLocation  Loc,
SourceRange  ConditionRange,
ConditionValueKind  ConditionValue,
SourceLocation  IfLoc 
)
inlineoverride

Definition at line 156 of file MacroToEnumCheck.cpp.

◆ Elifdef() [1/2]

void clang::tidy::modernize::MacroToEnumCallbacks::Elifdef ( SourceLocation  Loc,
const Token &  MacroNameTok,
const MacroDefinition &  MD 
)
inlineoverride

Definition at line 160 of file MacroToEnumCheck.cpp.

◆ Elifdef() [2/2]

void clang::tidy::modernize::MacroToEnumCallbacks::Elifdef ( SourceLocation  Loc,
SourceRange  ConditionRange,
SourceLocation  IfLoc 
)
inlineoverride

Definition at line 164 of file MacroToEnumCheck.cpp.

References Loc.

◆ Elifndef() [1/2]

void clang::tidy::modernize::MacroToEnumCallbacks::Elifndef ( SourceLocation  Loc,
const Token &  MacroNameTok,
const MacroDefinition &  MD 
)
inlineoverride

Definition at line 168 of file MacroToEnumCheck.cpp.

◆ Elifndef() [2/2]

void clang::tidy::modernize::MacroToEnumCallbacks::Elifndef ( SourceLocation  Loc,
SourceRange  ConditionRange,
SourceLocation  IfLoc 
)
inlineoverride

Definition at line 172 of file MacroToEnumCheck.cpp.

References Loc.

◆ Endif()

void clang::tidy::modernize::MacroToEnumCallbacks::Endif ( SourceLocation  Loc,
SourceLocation  IfLoc 
)
override

Definition at line 388 of file MacroToEnumCheck.cpp.

◆ EndOfMainFile()

void clang::tidy::modernize::MacroToEnumCallbacks::EndOfMainFile ( )
override

Definition at line 447 of file MacroToEnumCheck.cpp.

◆ FileChanged()

void clang::tidy::modernize::MacroToEnumCallbacks::FileChanged ( SourceLocation  Loc,
FileChangeReason  Reason,
SrcMgr::CharacteristicKind  FileType,
FileID  PrevFID 
)
override

Definition at line 304 of file MacroToEnumCheck.cpp.

References Loc.

◆ If()

void clang::tidy::modernize::MacroToEnumCallbacks::If ( SourceLocation  Loc,
SourceRange  ConditionRange,
ConditionValueKind  ConditionValue 
)
inlineoverride

Definition at line 141 of file MacroToEnumCheck.cpp.

References Loc.

◆ Ifdef()

void clang::tidy::modernize::MacroToEnumCallbacks::Ifdef ( SourceLocation  Loc,
const Token &  MacroNameTok,
const MacroDefinition &  MD 
)
inlineoverride

Definition at line 151 of file MacroToEnumCheck.cpp.

References Loc.

◆ Ifndef()

void clang::tidy::modernize::MacroToEnumCallbacks::Ifndef ( SourceLocation  Loc,
const Token &  MacroNameTok,
const MacroDefinition &  MD 
)
inlineoverride

Definition at line 146 of file MacroToEnumCheck.cpp.

References Loc.

◆ InclusionDirective()

void clang::tidy::modernize::MacroToEnumCallbacks::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 
)
inlineoverride

Definition at line 116 of file MacroToEnumCheck.cpp.

◆ invalidateRange()

void clang::tidy::modernize::MacroToEnumCallbacks::invalidateRange ( SourceRange  Range)

Definition at line 452 of file MacroToEnumCheck.cpp.

References Range.

Referenced by clang::tidy::modernize::MacroToEnumCheck::check().

◆ MacroDefined()

void clang::tidy::modernize::MacroToEnumCallbacks::MacroDefined ( const Token &  MacroNameTok,
const MacroDirective *  MD 
)
override

Definition at line 335 of file MacroToEnumCheck.cpp.

References Info.

◆ MacroUndefined()

void clang::tidy::modernize::MacroToEnumCallbacks::MacroUndefined ( const Token &  MacroNameTok,
const MacroDefinition &  MD,
const MacroDirective *  Undef 
)
override

Definition at line 369 of file MacroToEnumCheck.cpp.

References clang::tidy::modernize::getTokenName().

◆ PragmaDirective()

void clang::tidy::modernize::MacroToEnumCallbacks::PragmaDirective ( SourceLocation  Loc,
PragmaIntroducerKind  Introducer 
)
override

Definition at line 412 of file MacroToEnumCheck.cpp.

References Loc, and Text.


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