clang-tools 19.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 402 of file PreprocessorTracker.cpp.

References Args, getMacroExpandedString(), MacroName, and Name.

Referenced by getMacroExpandedString().

◆ getMacroUnexpandedString()

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

Definition at line 377 of file PreprocessorTracker.cpp.

References Length, MacroName, and Range.

◆ getSourceLine() [1/2]

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

Definition at line 339 of file PreprocessorTracker.cpp.

References Length, and Line.

◆ getSourceLine() [2/2]

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

Definition at line 313 of file PreprocessorTracker.cpp.

References Length, and Loc.

◆ getSourceLocationFile()

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

Definition at line 278 of file PreprocessorTracker.cpp.

References getSourceLocationString(), Loc, and Offset.

◆ getSourceLocationLineAndColumn()

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

Definition at line 288 of file PreprocessorTracker.cpp.

References Column, Line, and Loc.

◆ getSourceLocationString()

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

Definition at line 269 of file PreprocessorTracker.cpp.

References Loc.

Referenced by getSourceLocationFile().

◆ getSourceString()

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

Definition at line 302 of file PreprocessorTracker.cpp.

References Length, and Range.

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.