#include "ForwardDeclarationNamespaceCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include <stack>
#include <string>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
void ForwardDeclarationNamespaceCheck::registerMatchers(MatchFinder *Finder) { … }
void ForwardDeclarationNamespaceCheck::check(
const MatchFinder::MatchResult &Result) { … }
static bool haveSameNamespaceOrTranslationUnit(const CXXRecordDecl *Decl1,
const CXXRecordDecl *Decl2) { … }
static std::string getNameOfNamespace(const CXXRecordDecl *Decl) { … }
void ForwardDeclarationNamespaceCheck::onEndOfTranslationUnit() { … }
}