clang-tools  7.0.0svn
Functions | Variables
PPCallbacksTracker.cpp File Reference

Implementations for preprocessor tracking. More...

#include "PPCallbacksTracker.h"
#include "clang/Lex/MacroArgs.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for PPCallbacksTracker.cpp:

Go to the source code of this file.

Functions

static std::string getSourceLocationString (clang::Preprocessor &PP, clang::SourceLocation Loc)
 

Variables

static const char *const FileChangeReasonStrings []
 
static const char *const CharacteristicKindStrings []
 
static const char *const MacroDirectiveKindStrings []
 
static const char *const PragmaIntroducerKindStrings []
 
static const char *const PragmaMessageKindStrings []
 
static const char *const ConditionValueKindStrings []
 
static const char *const MappingStrings []
 

Detailed Description

Implementations for preprocessor tracking.

See the header for details.

Definition in file PPCallbacksTracker.cpp.

Function Documentation

◆ getSourceLocationString()

static std::string getSourceLocationString ( clang::Preprocessor &  PP,
clang::SourceLocation  Loc 
)
static

Definition at line 24 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::appendArgument().

Variable Documentation

◆ CharacteristicKindStrings

const char* const CharacteristicKindStrings[]
static
Initial value:
= { "C_User", "C_System",
"C_ExternCSystem" }

Definition at line 62 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::FileChanged(), and PPCallbacksTracker::FileSkipped().

◆ ConditionValueKindStrings

const char* const ConditionValueKindStrings[]
static
Initial value:
= {
"CVK_NotEvaluated", "CVK_False", "CVK_True"
}

Definition at line 81 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::Elif(), and PPCallbacksTracker::If().

◆ FileChangeReasonStrings

const char* const FileChangeReasonStrings[]
static
Initial value:
= {
"EnterFile", "ExitFile", "SystemHeaderPragma", "RenameFile"
}

Definition at line 57 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::FileChanged().

◆ MacroDirectiveKindStrings

const char* const MacroDirectiveKindStrings[]
static
Initial value:
= {
"MD_Define","MD_Undefine", "MD_Visibility"
}

Definition at line 66 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::appendArgument().

◆ MappingStrings

const char* const MappingStrings[]
static
Initial value:
= { "0", "MAP_IGNORE",
"MAP_REMARK", "MAP_WARNING",
"MAP_ERROR", "MAP_FATAL" }

Definition at line 86 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::PragmaDiagnostic().

◆ PragmaIntroducerKindStrings

const char* const PragmaIntroducerKindStrings[]
static
Initial value:
= { "PIK_HashPragma",
"PIK__Pragma",
"PIK___pragma" }

Definition at line 71 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::PragmaDirective().

◆ PragmaMessageKindStrings

const char* const PragmaMessageKindStrings[]
static
Initial value:
= {
"PMK_Message", "PMK_Warning", "PMK_Error"
}

Definition at line 76 of file PPCallbacksTracker.cpp.

Referenced by PPCallbacksTracker::PragmaMessage().