clang-tools 20.0.0git
|
#include "IncludeOrderCheck.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/STLExtras.h"
#include <map>
Go to the source code of this file.
Namespaces | |
namespace | clang |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
namespace | clang::tidy |
namespace | clang::tidy::llvm_check |
Functions | |
static int | clang::tidy::llvm_check::getPriority (StringRef Filename, bool IsAngled, bool IsMainModule) |
std::string Filename |
Filename as a string.
Definition at line 39 of file IncludeOrderCheck.cpp.
Referenced by clang::clangd::TestWorkspace::addMainFile(), clang::clangd::TestWorkspace::addSource(), clang::clangd::ParsedAST::build(), clang::clangd::combine(), clang::clangd::detail::debugType(), clang::replace::deleteReplacementFiles(), clang::clangd::formatIncremental(), clang::tidy::llvm_check::LLVMHeaderGuardCheck::getHeaderGuard(), clang::tidy::llvm_check::getPriority(), clang::clangd::getTidyOptionsForFile(), clang::clangd::TestWorkspace::openFile(), clang::doc::serialize::populateFunctionInfo(), clang::doc::serialize::populateSymbolInfo(), clang::clangd::provideClangTidyFiles(), clang::tidy::runClangTidy(), and clang::clangd::TEST_F().
bool IsAngled |
true if this was an include with angle brackets
Definition at line 40 of file IncludeOrderCheck.cpp.
Referenced by clang::tidy::utils::IncludeSorter::addInclude(), clang::move::ClangMoveTool::addIncludes(), clang::clangd::IncludeInserter::calculateIncludePath(), clang::tidy::utils::IncludeInserter::createIncludeInsertion(), clang::tidy::utils::IncludeSorter::createIncludeInsertion(), clang::tidy::llvm_check::getPriority(), clang::pp_trace::PPCallbacksTracker::InclusionDirective(), clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective(), clang::tidy::portability::RestrictedIncludesPPCallbacks::InclusionDirective(), clang::tidy::utils::IncludeInserterCallback::InclusionDirective(), and clang::include_fixer::IncludeFixerSemaSource::minimizeInclude().
bool IsMainModule |
true if this was the first include in a file
Definition at line 41 of file IncludeOrderCheck.cpp.
Referenced by clang::tidy::llvm_check::getPriority().
SourceLocation Loc |
'#' location in the include directive
Definition at line 37 of file IncludeOrderCheck.cpp.
CharSourceRange Range |
SourceRange for the file name.
Definition at line 38 of file IncludeOrderCheck.cpp.
Referenced by clang::tidy::readability::applyJaroWinklerHeuristic(), clang::tidy::utils::TransformerClangTidyCheck::check(), clang::tidy::abseil::FasterStrsplitDelimiterCheck::check(), clang::tidy::bugprone::ReturnConstRefFromParameterCheck::check(), clang::tidy::bugprone::VirtualNearMissCheck::check(), clang::tidy::modernize::MacroToEnumCheck::check(), clang::tidy::modernize::ReplaceAutoPtrCheck::check(), clang::tidy::modernize::UseNoexceptCheck::check(), clang::tidy::modernize::UseStdNumbersCheck::check(), clang::tidy::readability::QualifiedAutoCheck::check(), clang::tidy::RenamerClangTidyCheck::checkMacro(), clang::tidy::readability::collectSourceRanges(), clang::include_fixer::IncludeFixerSemaSource::CorrectTypo(), clang::pp_trace::PPCallbacksTracker::Defined(), llvm::yaml::SequenceTraits< FileFilter::LineRange >::element(), clang::tidy::modernize::empty(), clang::tidy::RenamerClangTidyCheck::expandMacro(), clang::tidy::bugprone::getCommentsInRange(), clang::tidy::readability::getFullInitRangeInclWhitespaces(), clang::tidy::readability::getLocationOfConst(), Modularize::getMacroUnexpandedString(), clang::tidy::utils::lexer::getQualifyingToken(), clang::tidy::modernize::getRawStringRef(), clang::pp_trace::PPCallbacksTracker::getSourceString(), Modularize::getSourceString(), clang::tidy::modernize::getStringFromRange(), clang::tidy::readability::getStringFromRange(), clang::find_all_symbols::PragmaCommentHandler::HandleComment(), clang::tidy::google::readability::TodoCommentCheck::TodoCommentHandler::HandleComment(), clang::tidy::misc::MisleadingBidirectionalCheck::MisleadingBidirectionalHandler::HandleComment(), clang::tidy::abseil::insideMacroDefinition(), clang::tidy::modernize::MacroToEnumCallbacks::invalidateRange(), clang::tidy::modernize::isValid(), clang::pp_trace::PPCallbacksTracker::MacroExpands(), MATCHER_P(), clang::tidy::modernize::parseTokens(), clang::tidy::utils::rangeCanBeFixed(), clang::tidy::utils::lexer::rangeContainsExpansionsOrDirectives(), clang::tidy::utils::rangeContainsMacroExpansion(), clang::tidy::utils::rangeIsEntirelyWithinMacroArgument(), llvm::yaml::SequenceTraits< FileFilter::LineRange >::size(), clang::pp_trace::PPCallbacksTracker::SourceRangeSkipped(), and llvm::yaml::MappingTraits< FileFilter >::validate().