#include "TestVisitor.h"
#include "clang/AST/LexicallyOrderedRecursiveASTVisitor.h"
#include <stack>
usingnamespaceclang;
namespace {
class DummyMatchVisitor;
class LexicallyOrderedDeclVisitor
: public LexicallyOrderedRecursiveASTVisitor<LexicallyOrderedDeclVisitor> { … };
class DummyMatchVisitor : public ExpectedLocationVisitor<DummyMatchVisitor> { … };
bool LexicallyOrderedDeclVisitor::TraverseStmt(Stmt *S) { … }
bool LexicallyOrderedDeclVisitor::VisitNamedDecl(const NamedDecl *D) { … }
bool LexicallyOrderedDeclVisitor::VisitDeclRefExpr(const DeclRefExpr *D) { … }
TEST(LexicallyOrderedRecursiveASTVisitor, VisitDeclsInImplementation) { … }
TEST(LexicallyOrderedRecursiveASTVisitor, VisitMacroDeclsInImplementation) { … }
TEST(LexicallyOrderedRecursiveASTVisitor, VisitTemplateDecl) { … }
TEST(LexicallyOrderedRecursiveASTVisitor, VisitCXXOperatorCallExpr) { … }
}