clang-tools 20.0.0git
|
#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 |
int Column |
Definition at line 515 of file PreprocessorTracker.cpp.
Referenced by Modularize::getSourceLocationLineAndColumn().
std::vector<ConditionalExpansionInstance> ConditionalExpansionInstances |
Definition at line 714 of file PreprocessorTracker.cpp.
StringHandle ConditionUnexpanded |
Definition at line 710 of file PreprocessorTracker.cpp.
clang::PPCallbacks::ConditionValueKind ConditionValue |
Definition at line 660 of file PreprocessorTracker.cpp.
Referenced by clang::pp_trace::PPCallbacksTracker::Elif(), and clang::pp_trace::PPCallbacksTracker::If().
PPItemKey DefinitionLocation |
Definition at line 564 of file PreprocessorTracker.cpp.
StringHandle DefinitionSourceLine |
Definition at line 566 of file PreprocessorTracker.cpp.
clang::tok::PPKeywordKind DirectiveKind |
Definition at line 708 of file PreprocessorTracker.cpp.
HeaderHandle File |
Definition at line 513 of file PreprocessorTracker.cpp.
std::vector<InclusionPathHandle> InclusionPathHandles |
Definition at line 568 of file PreprocessorTracker.cpp.
StringHandle InstanceSourceLine |
Definition at line 623 of file PreprocessorTracker.cpp.
int Line |
Definition at line 514 of file PreprocessorTracker.cpp.
StringHandle MacroExpanded |
Definition at line 562 of file PreprocessorTracker.cpp.
std::vector<MacroExpansionInstance> MacroExpansionInstances |
Definition at line 627 of file PreprocessorTracker.cpp.
StringHandle MacroUnexpanded |
Definition at line 621 of file PreprocessorTracker.cpp.
StringHandle Name |
Definition at line 512 of file PreprocessorTracker.cpp.
std::vector<HeaderHandle> Path |
Definition at line 525 of file PreprocessorTracker.cpp.
Referenced by clang::tidy::FileOptionsBaseProvider::addRawFileOptions(), clang::pp_trace::PPCallbacksTracker::appendFilePathArgument(), clang::ast_matchers::AST_POLYMORPHIC_MATCHER(), clang::doc::calculateRelativeFilePath(), clang::tidy::bugprone::checkOverridingFunctionReturnType(), clang::tidy::utils::cleanPath(), clang::doc::HTMLGenerator::generateDocs(), clang::doc::MDGenerator::generateDocs(), clang::doc::YAMLGenerator::generateDocs(), clang::doc::genReference(), Modularize::ModularizeUtilities::getDirectoryFromPath(), clang::doc::serialize::getInfoRelativePath(), clang::replace::groupReplacements(), clang::pp_trace::PPCallbacksTracker::moduleImport(), replaceDotDot(), clang::find_all_symbols::SymbolInfo::SetFilePath(), and clang::doc::writeNameLink().