clang-tools  11.0.0git
Classes | Typedefs | Functions | Variables
Modularize Namespace Reference

Classes

class  CoverageChecker
 Module map checker class. More...
 
class  ModularizeUtilities
 Modularize utilities class. More...
 
class  PreprocessorTracker
 Preprocessor tracker for modularize. More...
 

Typedefs

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

Functions

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

Variables

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

Typedef Documentation

◆ HeaderHandle

Definition at line 260 of file PreprocessorTracker.cpp.

◆ InclusionPathHandle

Definition at line 263 of file PreprocessorTracker.cpp.

◆ StringHandle

typedef llvm::StringRef Modularize::StringHandle

Definition at line 258 of file PreprocessorTracker.cpp.

Function Documentation

◆ getMacroExpandedString()

static std::string Modularize::getMacroExpandedString ( clang::Preprocessor &  PP,
llvm::StringRef  MacroName,
const clang::MacroInfo *  MI,
const clang::MacroArgs *  Args 
)
static

Definition at line 401 of file PreprocessorTracker.cpp.

◆ getMacroUnexpandedString()

static std::string Modularize::getMacroUnexpandedString ( clang::SourceRange  Range,
clang::Preprocessor &  PP,
llvm::StringRef  MacroName,
const clang::MacroInfo *  MI 
)
static

Definition at line 376 of file PreprocessorTracker.cpp.

◆ getSourceLine() [1/2]

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

Definition at line 313 of file PreprocessorTracker.cpp.

◆ getSourceLine() [2/2]

static std::string Modularize::getSourceLine ( clang::Preprocessor &  PP,
clang::FileID  FileID,
int  Line 
)
static

Definition at line 339 of file PreprocessorTracker.cpp.

◆ getSourceLocationFile()

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

Definition at line 278 of file PreprocessorTracker.cpp.

Referenced by Modularize::PreprocessorTracker::create().

◆ getSourceLocationLineAndColumn()

static void Modularize::getSourceLocationLineAndColumn ( clang::Preprocessor &  PP,
clang::SourceLocation  Loc,
int &  Line,
int &  Column 
)
static

Definition at line 288 of file PreprocessorTracker.cpp.

Referenced by Modularize::PreprocessorTracker::create().

◆ getSourceLocationString()

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

Definition at line 269 of file PreprocessorTracker.cpp.

◆ getSourceString()

static std::string Modularize::getSourceString ( clang::Preprocessor &  PP,
clang::SourceRange  Range 
)
static

Definition at line 302 of file PreprocessorTracker.cpp.

Variable Documentation

◆ HeaderHandleInvalid

const HeaderHandle Modularize::HeaderHandleInvalid = -1

Definition at line 261 of file PreprocessorTracker.cpp.

◆ InclusionPathHandleInvalid

const InclusionPathHandle Modularize::InclusionPathHandleInvalid = -1

Definition at line 264 of file PreprocessorTracker.cpp.