clang-tools 3.8.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Namespaces | Functions
IncludeOrderCheck.cpp File Reference
`#include "IncludeOrderCheck.h"`
`#include "clang/Frontend/CompilerInstance.h"`
`#include "clang/Lex/PPCallbacks.h"`
`#include "clang/Lex/Preprocessor.h"`
Include dependency graph for IncludeOrderCheck.cpp:

Go to the source code of this file.

## Namespaces
| clang
| clang::tidy
| clang::tidy::llvm

## Functions
static int | clang::tidy::llvm::getPriority (StringRef Filename, bool IsAngled, bool IsMainModule)

## Variable Documentation

ClangTidyCheck& Check

Definition at line 43 of file IncludeOrderCheck.cpp.

std::string Filename

Filename as a string.

Definition at line 36 of file IncludeOrderCheck.cpp.

Referenced by clang::tidy::google::readability::GlobalNamesInHeadersCheck::check(), clang::replace::deleteReplacementFiles(), and clang::tidy::runClangTidy().

std::vector<IncludeDirective> IncludeDirectives

Definition at line 40 of file IncludeOrderCheck.cpp.

bool IsAngled

true if this was an include with angle brackets

Definition at line 37 of file IncludeOrderCheck.cpp.

bool IsMainModule

true if this was the first include in a file

Definition at line 38 of file IncludeOrderCheck.cpp.

SourceLocation Loc

'#' location in the include directive

Definition at line 34 of file IncludeOrderCheck.cpp.

Referenced by clang::tidy::modernize::UseOverrideCheck::check(), clang::tidy::google::ExplicitConstructorCheck::check(), clang::tidy::StringIntegerAssignmentCheck::check(), clang::tidy::google::runtime::IntegerTypesCheck::check(), clang::tidy::readability::NamespaceCommentCheck::check(), clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::check(), clang::tidy::misc::InaccurateEraseCheck::check(), clang::tidy::readability::IdentifierNamingCheck::check(), clang::tidy::AssertSideEffectCheck::check(), clang::tidy::google::build::UsingNamespaceDirectiveCheck::check(), Modularize::ModularizeUtilities::collectModuleHeaders(), clang::rename::RenamingASTConsumer::HandleTranslationUnit(), CollectEntitiesConsumer::HandleTranslationUnit(), clang::tidy::readability::IdentifierNamingCheck::onEndOfTranslationUnit(), and CollectEntitiesVisitor::VisitNamedDecl().

bool LookForMainModule

Definition at line 41 of file IncludeOrderCheck.cpp.

CharSourceRange Range

SourceRange for the file name.

Definition at line 35 of file IncludeOrderCheck.cpp.

Referenced by clang::replace::calculateChangedRanges(), clang::tidy::readability::IdentifierNamingCheck::check(), clang::tidy::modernize::ReplaceAutoPtrCheck::check(), clang::replace::deduplicateAndDetectConflicts(), and llvm::yaml::MappingTraits< FileFilter >::validate().

SourceManager& SM

Definition at line 44 of file IncludeOrderCheck.cpp.

Referenced by applyFormatting(), applyReplacements(), clang::tidy::misc::MoveConstantArgumentCheck::check(), clang::tidy::modernize::PassByValueCheck::check(), clang::tidy::misc::InefficientAlgorithmCheck::check(), clang::tidy::StaticAssertCheck::check(), clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::check(), clang::tidy::modernize::MakeUniqueCheck::check(), clang::tidy::google::readability::AvoidCStyleCastsCheck::check(), clang::tidy::readability::NamedParameterCheck::check(), clang::tidy::readability::FunctionSizeCheck::check(), clang::tidy::AssertSideEffectCheck::check(), clang::tidy::readability::BracesAroundStatementsCheck::check(), clang::tidy::modernize::ReplaceAutoPtrCheck::check(), clang::tidy::google::runtime::getAsString(), clang::tidy::misc::getAsString(), getRewrittenData(), CollectEntitiesConsumer::HandleTranslationUnit(), main(), and CollectEntitiesVisitor::VisitNamedDecl().