9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_CONCATNESTEDNAMESPACESCHECK_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_CONCATNESTEDNAMESPACESCHECK_H 12 #include "../ClangTidyCheck.h" 13 #include "llvm/ADT/SmallString.h" 14 #include "llvm/ADT/SmallVector.h" 25 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
28 using NamespaceContextVec = llvm::SmallVector<const NamespaceDecl *, 6>;
29 using NamespaceString = llvm::SmallString<40>;
31 void reportDiagnostic(
const SourceRange &FrontReplacement,
32 const SourceRange &BackReplacement);
33 NamespaceString concatNamespaces();
34 NamespaceContextVec Namespaces;
40 #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
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.