clang-tools 10.0.0

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 <map>`
Include dependency graph for IncludeOrderCheck.cpp:

Go to the source code of this file.

## Namespaces
| clang
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
| clang::tidy
| clang::tidy::llvm_check

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

## Variable Documentation

## ◆ Filename

std::string Filename

Filename as a string.

Definition at line 39 of file IncludeOrderCheck.cpp.

Referenced by clang::clangd::detail::debugType(), clang::replace::deleteReplacementFiles(), clang::find_all_symbols::FindAllSymbols::onEndOfTranslationUnit(), clang::doc::Location::operator<(), clang::doc::Location::operator==(), clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::RestrictedIncludesPPCallbacks(), and clang::tidy::llvm_check::LLVMHeaderGuardCheck::shouldSuggestEndifComment().

## ◆ IsAngled

bool IsAngled

true if this was an include with angle brackets

Definition at line 40 of file IncludeOrderCheck.cpp.

Referenced by Modularize::PreprocessorTracker::create(), clang::tidy::utils::IncludeInserter::CreateIncludeInsertion(), clang::tidy::utils::IncludeSorter::current_FileID(), clang::tooling::ExpandModularHeadersPPCallbacks::getPreprocessor(), clang::tidy::llvm_check::getPriority(), and clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::RestrictedIncludesPPCallbacks().

## ◆ IsMainModule

bool IsMainModule

true if this was the first include in a file

Definition at line 41 of file IncludeOrderCheck.cpp.

## ◆ Loc

SourceLocation Loc

'#' location in the include directive

Definition at line 37 of file IncludeOrderCheck.cpp.

Referenced by Modularize::ModularizeUtilities::collectModuleHeaders(), clang::tooling::ExpandModularHeadersPPCallbacks::getPreprocessor(), clang::tidy::ClangTidyDiagnosticConsumer::HandleDiagnostic(), clang::clangd::IncludeFixer::IncludeFixer(), clang::doc::SymbolInfo::merge(), clang::tidy::readability::IdentifierNamingCheck::onEndOfTranslationUnit(), clang::clangd::prefer(), clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::RestrictedIncludesPPCallbacks(), clang::tidy::ClangTidyContext::setDiagnosticsEngine(), clang::include_fixer::IncludeFixerSemaSource::setFilePath(), and clang::clangd::SymbolCollector::setPreprocessor().

## ◆ Range

CharSourceRange Range

SourceRange for the file name.

Definition at line 38 of file IncludeOrderCheck.cpp.

Referenced by clang::tidy::abseil::FasterStrsplitDelimiterCheck::check(), llvm::yaml::MappingTraits< tooling::Range >::NormalizedRange::denormalize(), clang::find_all_symbols::FindAllMacros::FindAllMacros(), clang::clangd::ClangdServer::formatFile(), clang::clangd::formatIncremental(), clang::tooling::ExpandModularHeadersPPCallbacks::getPreprocessor(), MATCHER_P(), clang::include_fixer::IncludeFixerSemaSource::MaybeDiagnoseMissingCompleteType(), clang::find_all_symbols::PragmaCommentHandler::PragmaCommentHandler(), clang::clangd::Annotations::ranges(), clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::RestrictedIncludesPPCallbacks(), and llvm::yaml::MappingTraits< FileFilter >::validate().