#include "ConcatNestedNamespacesCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include <algorithm>
#include <optional>
namespace clang::tidy::modernize {
static bool locationsInSameFile(const SourceManager &Sources,
SourceLocation Loc1, SourceLocation Loc2) { … }
static StringRef getRawStringRef(const SourceRange &Range,
const SourceManager &Sources,
const LangOptions &LangOpts) { … }
std::optional<SourceRange>
NS::getCleanedNamespaceFrontRange(const SourceManager &SM,
const LangOptions &LangOpts) const { … }
SourceRange NS::getReplacedNamespaceFrontRange() const { … }
SourceRange NS::getDefaultNamespaceBackRange() const { … }
SourceRange NS::getNamespaceBackRange(const SourceManager &SM,
const LangOptions &LangOpts) const { … }
void NS::appendName(NamespaceName &Str) const { … }
void NS::appendCloseComment(NamespaceName &Str) const { … }
bool ConcatNestedNamespacesCheck::unsupportedNamespace(const NamespaceDecl &ND,
bool IsChild) const { … }
bool ConcatNestedNamespacesCheck::singleNamedNamespaceChild(
const NamespaceDecl &ND) const { … }
void ConcatNestedNamespacesCheck::registerMatchers(
ast_matchers::MatchFinder *Finder) { … }
void ConcatNestedNamespacesCheck::reportDiagnostic(
const SourceManager &SM, const LangOptions &LangOpts) { … }
void ConcatNestedNamespacesCheck::check(
const ast_matchers::MatchFinder::MatchResult &Result) { … }
}