clang-tools 3.8.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Namespaces | Typedefs | Functions | Variables
PreprocessorTracker.cpp File Reference
`#include "clang/Lex/LexDiagnostic.h"`
`#include "PreprocessorTracker.h"`
`#include "clang/Lex/MacroArgs.h"`
`#include "clang/Lex/PPCallbacks.h"`
`#include "llvm/ADT/SmallSet.h"`
`#include "llvm/Support/StringPool.h"`
`#include "llvm/Support/raw_ostream.h"`
`#include "ModularizeUtilities.h"`
Include dependency graph for PreprocessorTracker.cpp:

Go to the source code of this file.

## Namespaces
| Modularize

## Typedefs
typedef llvm::PooledStringPtr | 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

bool BlockCheckHeaderListOnly

Definition at line 1273 of file PreprocessorTracker.cpp.

int Column

Definition at line 528 of file PreprocessorTracker.cpp.

Referenced by Location::Location().

std::vector<ConditionalExpansionInstance> ConditionalExpansionInstances

Definition at line 733 of file PreprocessorTracker.cpp.

ConditionalExpansionMap ConditionalExpansions

Definition at line 1282 of file PreprocessorTracker.cpp.

StringHandle ConditionUnexpanded

Definition at line 729 of file PreprocessorTracker.cpp.

clang::PPCallbacks::ConditionValueKind ConditionValue

Definition at line 678 of file PreprocessorTracker.cpp.

InclusionPathHandle CurrentInclusionPathHandle

Definition at line 1278 of file PreprocessorTracker.cpp.

PPItemKey DefinitionLocation

Definition at line 579 of file PreprocessorTracker.cpp.

StringHandle DefinitionSourceLine

Definition at line 581 of file PreprocessorTracker.cpp.

clang::tok::PPKeywordKind DirectiveKind

Definition at line 727 of file PreprocessorTracker.cpp.

HeaderHandle File

Definition at line 526 of file PreprocessorTracker.cpp.

Referenced by Modularize::CoverageChecker::collectUmbrellaHeaders(), Modularize::ModularizeUtilities::collectUmbrellaHeaders(), Modularize::ModularizeUtilities::displayCombinedFiles(), clang::tidy::google::FindToken(), getModularizeArgumentsAdjuster(), Location::Location(), main(), Location::operator bool(), clang::tidy::modernize::ParseTokens(), and clang::tidy::ClangTidyContext::setCurrentFile().

llvm::SmallVector<std::string, 32> HeaderList

Definition at line 1271 of file PreprocessorTracker.cpp.

std::vector<StringHandle> HeaderPaths

Definition at line 1275 of file PreprocessorTracker.cpp.

llvm::SmallSet<HeaderHandle, 128> HeadersInThisCompile

Definition at line 1279 of file PreprocessorTracker.cpp.

std::vector<HeaderHandle> HeaderStack

Definition at line 1276 of file PreprocessorTracker.cpp.

std::vector<PPItemKey> IncludeDirectives

Definition at line 1280 of file PreprocessorTracker.cpp.

std::vector<InclusionPathHandle> InclusionPathHandles

Definition at line 583 of file PreprocessorTracker.cpp.

std::vector<HeaderInclusionPath> InclusionPaths

Definition at line 1277 of file PreprocessorTracker.cpp.

bool InNestedHeader

Definition at line 1283 of file PreprocessorTracker.cpp.

StringHandle InstanceSourceLine

Definition at line 639 of file PreprocessorTracker.cpp.

int Line

Definition at line 527 of file PreprocessorTracker.cpp.

Referenced by Modularize::ModularizeUtilities::loadProblemHeaderList(), Modularize::ModularizeUtilities::loadSingleHeaderListsAndDependencies(), Location::Location(), main(), and clang::tidy::printProfileData().

StringHandle MacroExpanded

Definition at line 577 of file PreprocessorTracker.cpp.

std::vector<MacroExpansionInstance> MacroExpansionInstances

Definition at line 643 of file PreprocessorTracker.cpp.

MacroExpansionMap MacroExpansions

Definition at line 1281 of file PreprocessorTracker.cpp.

StringHandle MacroUnexpanded

Definition at line 637 of file PreprocessorTracker.cpp.

StringHandle Name

Definition at line 525 of file PreprocessorTracker.cpp.

Referenced by EntityMap::add(), clang::tidy::misc::AssignOperatorSignatureCheck::check(), clang::tidy::readability::NamedParameterCheck::check(), clang::tidy::readability::IdentifierNamingCheck::check(), clang::tidy::readability::fixupWithCase(), clang::tidy::modernize::getContainerFromBeginEndCall(), Modularize::getMacroExpandedString(), clang::tidy::ClangTidyCheckFactories::registerCheck(), clang::tidy::ClangTidyCheckFactories::registerCheckFactory(), clang::query::LetQuery::run(), and CollectEntitiesVisitor::VisitNamedDecl().

std::vector<HeaderHandle> Path

Definition at line 538 of file PreprocessorTracker.cpp.

Referenced by PPCallbacksTracker::appendFilePathArgument(), clang::tidy::misc::checkOverridingFunctionReturnType(), and clang::tidy::FileOptionsProvider::getOptions().

clang::Preprocessor& PP

Definition at line 782 of file PreprocessorTracker.cpp.

PreprocessorTrackerImpl& PPTracker

Definition at line 781 of file PreprocessorTracker.cpp.

Referenced by CollectEntitiesConsumer::CollectEntitiesConsumer(), ModularizeFrontendActionFactory::create(), CollectEntitiesAction::CreateASTConsumer(), CollectEntitiesConsumer::HandleTranslationUnit(), main(), CollectEntitiesVisitor::VisitLinkageSpecDecl(), CollectEntitiesVisitor::VisitNamespaceDecl(), and CollectEntitiesConsumer::~CollectEntitiesConsumer().

std::string RootHeaderFile

Definition at line 783 of file PreprocessorTracker.cpp.

llvm::StringPool Strings

Definition at line 1274 of file PreprocessorTracker.cpp.

Referenced by Modularize::ModularizeUtilities::loadProblemHeaderList(), and Modularize::ModularizeUtilities::loadSingleHeaderListsAndDependencies().