10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_CONCATNESTEDNAMESPACESCHECK_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_CONCATNESTEDNAMESPACESCHECK_H 13 #include "../ClangTidy.h" 14 #include "llvm/ADT/SmallString.h" 15 #include "llvm/ADT/SmallVector.h" 26 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
29 using NamespaceContextVec = llvm::SmallVector<const NamespaceDecl *, 6>;
30 using NamespaceString = llvm::SmallString<40>;
32 void reportDiagnostic(
const SourceRange &FrontReplacement,
33 const SourceRange &BackReplacement);
34 NamespaceString concatNamespaces();
35 NamespaceContextVec Namespaces;
41 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_CONCATNESTEDNAMESPACESCHECK_H Base class for all clang-tidy checks.
ConcatNestedNamespacesCheck(StringRef Name, ClangTidyContext *Context)
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
static constexpr llvm::StringLiteral Name
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.