clang-tools
4.0.0
|
Namespaces | |
decl_ref_expr | |
fixit | |
lexer | |
options | |
type_traits | |
Classes | |
class | ExprSequence |
Provides information about the evaluation order of (sub-)expressions within a CFGBlock . More... | |
class | StmtToBlockMap |
Maps Stmt s to the CFGBlock that contains them. More... | |
class | HeaderGuardCheck |
Finds and fixes header guards. More... | |
class | IncludeInserterCallback |
class | IncludeInserter |
Produces fixes to insert specified includes to source files, if not yet present. More... | |
class | IncludeSorter |
Class used by IncludeInserterCallback to record the names of the inclusions in a given source file being processed and generate the necessary commands to sort the inclusions according to the precedence encoded in IncludeKinds . More... | |
class | NamespaceAliaser |
class | UsingInserter |
Typedefs | |
typedef llvm::SmallSet < llvm::StringRef, 5 > | HeaderFileExtensionsSet |
Functions | |
const FunctionDecl * | getSurroundingFunction (ASTContext &Context, const Stmt &Statement) |
static SmallVector< const Stmt *, 1 > | getParentStmts (const Stmt *S, ASTContext *Context) |
bool | isExpansionLocInHeaderFile (SourceLocation Loc, const SourceManager &SM, const HeaderFileExtensionsSet &HeaderFileExtensions) |
Checks whether expansion location of Loc is in header file. More... | |
bool | isPresumedLocInHeaderFile (SourceLocation Loc, SourceManager &SM, const HeaderFileExtensionsSet &HeaderFileExtensions) |
Checks whether presumed location of Loc is in header file. More... | |
bool | isSpellingLocInHeaderFile (SourceLocation Loc, SourceManager &SM, const HeaderFileExtensionsSet &HeaderFileExtensions) |
Checks whether spelling location of Loc is in header file. More... | |
bool | parseHeaderFileExtensions (StringRef AllHeaderFileExtensions, HeaderFileExtensionsSet &HeaderFileExtensions, char delimiter) |
Parses header file extensions from a semicolon-separated list. More... | |
bool | isHeaderFileExtension (StringRef FileName, const HeaderFileExtensionsSet &HeaderFileExtensions) |
Decides whether a file has a header file extension. More... | |
static std::string | cleanPath (StringRef Path) |
canonicalize a path by removing ./ and ../ components. More... | |
AST_MATCHER_P (NamespaceAliasDecl, hasTargetNamespace, ast_matchers::internal::Matcher< NamespaceDecl >, innerMatcher) | |
static StringRef | getUnqualifiedName (StringRef QualifiedName) |
typedef llvm::SmallSet<llvm::StringRef, 5> clang::tidy::utils::HeaderFileExtensionsSet |
Definition at line 22 of file HeaderFileExtensionsUtils.h.
clang::tidy::utils::AST_MATCHER_P | ( | NamespaceAliasDecl | , |
hasTargetNamespace | , | ||
ast_matchers::internal::Matcher< NamespaceDecl > | , | ||
innerMatcher | |||
) |
Definition at line 25 of file NamespaceAliaser.cpp.
References Finder.
|
static |
canonicalize a path by removing ./ and ../ components.
Definition at line 22 of file HeaderGuard.cpp.
|
static |
Definition at line 28 of file ExprSequence.cpp.
References Result.
Referenced by clang::tidy::utils::StmtToBlockMap::blockContainingStmt(), and clang::tidy::utils::ExprSequence::inSequence().
const FunctionDecl * clang::tidy::utils::getSurroundingFunction | ( | ASTContext & | Context, |
const Stmt & | Statement | ||
) |
|
static |
Definition at line 23 of file UsingInserter.cpp.
Referenced by clang::tidy::utils::UsingInserter::createUsingDeclaration(), and clang::tidy::utils::UsingInserter::getShortName().
bool clang::tidy::utils::isExpansionLocInHeaderFile | ( | SourceLocation | Loc, |
const SourceManager & | SM, | ||
const HeaderFileExtensionsSet & | HeaderFileExtensions | ||
) |
Checks whether expansion location of Loc
is in header file.
Definition at line 18 of file HeaderFileExtensionsUtils.cpp.
References isHeaderFileExtension().
bool clang::tidy::utils::isHeaderFileExtension | ( | StringRef | FileName, |
const HeaderFileExtensionsSet & | HeaderFileExtensions | ||
) |
Decides whether a file has a header file extension.
Definition at line 60 of file HeaderFileExtensionsUtils.cpp.
Referenced by isExpansionLocInHeaderFile(), isPresumedLocInHeaderFile(), isSpellingLocInHeaderFile(), clang::tidy::llvm::LLVMHeaderGuardCheck::shouldFixHeaderGuard(), clang::tidy::utils::HeaderGuardCheck::shouldSuggestEndifComment(), and clang::tidy::utils::HeaderGuardCheck::shouldSuggestToAddHeaderGuard().
bool clang::tidy::utils::isPresumedLocInHeaderFile | ( | SourceLocation | Loc, |
SourceManager & | SM, | ||
const HeaderFileExtensionsSet & | HeaderFileExtensions | ||
) |
Checks whether presumed location of Loc
is in header file.
Definition at line 26 of file HeaderFileExtensionsUtils.cpp.
References isHeaderFileExtension().
Referenced by clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::check().
bool clang::tidy::utils::isSpellingLocInHeaderFile | ( | SourceLocation | Loc, |
SourceManager & | SM, | ||
const HeaderFileExtensionsSet & | HeaderFileExtensions | ||
) |
Checks whether spelling location of Loc
is in header file.
Definition at line 34 of file HeaderFileExtensionsUtils.cpp.
References isHeaderFileExtension().
Referenced by clang::tidy::google::readability::GlobalNamesInHeadersCheck::check().
bool clang::tidy::utils::parseHeaderFileExtensions | ( | StringRef | AllHeaderFileExtensions, |
HeaderFileExtensionsSet & | HeaderFileExtensions, | ||
char | delimiter | ||
) |
Parses header file extensions from a semicolon-separated list.
Definition at line 42 of file HeaderFileExtensionsUtils.cpp.
Referenced by clang::tidy::misc::DefinitionsInHeadersCheck::DefinitionsInHeadersCheck(), clang::tidy::google::readability::GlobalNamesInHeadersCheck::GlobalNamesInHeadersCheck(), clang::tidy::utils::HeaderGuardCheck::HeaderGuardCheck(), clang::tidy::llvm::LLVMHeaderGuardCheck::LLVMHeaderGuardCheck(), and clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::UnnamedNamespaceInHeaderCheck().