clang-tools 20.0.0git
Namespaces | Typedefs | Functions | Variables
PreprocessorTracker.cpp File Reference
#include "PreprocessorTracker.h"
#include "ModularizeUtilities.h"
#include "clang/Lex/LexDiagnostic.h"
#include "clang/Lex/MacroArgs.h"
#include "clang/Lex/PPCallbacks.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Namespaces

namespace  Modularize
 

Typedefs

typedef llvm::StringRef Modularize::StringHandle
 
typedef int Modularize::HeaderHandle
 
typedef int Modularize::InclusionPathHandle
 

Functions

static std::string Modularize::getSourceLocationString (clang::Preprocessor &PP, clang::SourceLocation Loc)
 
static std::string Modularize::getSourceLocationFile (clang::Preprocessor &PP, clang::SourceLocation Loc)
 
static void Modularize::getSourceLocationLineAndColumn (clang::Preprocessor &PP, clang::SourceLocation Loc, int &Line, int &Column)
 
static std::string Modularize::getSourceString (clang::Preprocessor &PP, clang::SourceRange Range)
 
static std::string Modularize::getSourceLine (clang::Preprocessor &PP, clang::SourceLocation Loc)
 
static std::string Modularize::getSourceLine (clang::Preprocessor &PP, clang::FileID FileID, int Line)
 
static std::string Modularize::getMacroUnexpandedString (clang::SourceRange Range, clang::Preprocessor &PP, llvm::StringRef MacroName, const clang::MacroInfo *MI)
 
static std::string Modularize::getMacroExpandedString (clang::Preprocessor &PP, llvm::StringRef MacroName, const clang::MacroInfo *MI, const clang::MacroArgs *Args)
 

Variables

const HeaderHandle Modularize::HeaderHandleInvalid = -1
 
const InclusionPathHandle Modularize::InclusionPathHandleInvalid = -1
 

Variable Documentation

◆ Column

int Column

Definition at line 515 of file PreprocessorTracker.cpp.

Referenced by Modularize::getSourceLocationLineAndColumn().

◆ ConditionalExpansionInstances

std::vector<ConditionalExpansionInstance> ConditionalExpansionInstances

Definition at line 714 of file PreprocessorTracker.cpp.

◆ ConditionUnexpanded

StringHandle ConditionUnexpanded

Definition at line 710 of file PreprocessorTracker.cpp.

◆ ConditionValue

clang::PPCallbacks::ConditionValueKind ConditionValue

◆ DefinitionLocation

PPItemKey DefinitionLocation

Definition at line 564 of file PreprocessorTracker.cpp.

◆ DefinitionSourceLine

StringHandle DefinitionSourceLine

Definition at line 566 of file PreprocessorTracker.cpp.

◆ DirectiveKind

clang::tok::PPKeywordKind DirectiveKind

Definition at line 708 of file PreprocessorTracker.cpp.

◆ File

HeaderHandle File

Definition at line 513 of file PreprocessorTracker.cpp.

◆ InclusionPathHandles

std::vector<InclusionPathHandle> InclusionPathHandles

Definition at line 568 of file PreprocessorTracker.cpp.

◆ InstanceSourceLine

StringHandle InstanceSourceLine

Definition at line 623 of file PreprocessorTracker.cpp.

◆ Line

int Line

Definition at line 514 of file PreprocessorTracker.cpp.

◆ MacroExpanded

StringHandle MacroExpanded

Definition at line 562 of file PreprocessorTracker.cpp.

◆ MacroExpansionInstances

std::vector<MacroExpansionInstance> MacroExpansionInstances

Definition at line 627 of file PreprocessorTracker.cpp.

◆ MacroUnexpanded

StringHandle MacroUnexpanded

Definition at line 621 of file PreprocessorTracker.cpp.

◆ Name

StringHandle Name

Definition at line 512 of file PreprocessorTracker.cpp.

◆ Path

std::vector<HeaderHandle> Path