From 64fb227fe9519d8941dc249499c548dd4b09fd96 Mon Sep 17 00:00:00 2001 From: Vladimir Uhlik Date: Tue, 30 Jul 2024 19:13:33 +0200 Subject: [PATCH] interfaces:ast: Unify include format. --- include/vast/Interfaces/AST/ExprInterface.hpp | 2 +- include/vast/Interfaces/AST/StmtInterface.hpp | 2 +- include/vast/Interfaces/AST/StmtVisitor.h | 12 ++++-------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/vast/Interfaces/AST/ExprInterface.hpp b/include/vast/Interfaces/AST/ExprInterface.hpp index e06dece104..a00c74a3fe 100644 --- a/include/vast/Interfaces/AST/ExprInterface.hpp +++ b/include/vast/Interfaces/AST/ExprInterface.hpp @@ -13,7 +13,7 @@ VAST_RELAX_WARNINGS #include "vast/Interfaces/AST/StmtInterface.hpp" #include "vast/Interfaces/AST/TypeInterface.hpp" -#include "clang/AST/Expr.h" +#include /// Include the generated interface declarations. #include "vast/Interfaces/AST/ExprInterface.h.inc" diff --git a/include/vast/Interfaces/AST/StmtInterface.hpp b/include/vast/Interfaces/AST/StmtInterface.hpp index acbecf520c..0583f3ab55 100644 --- a/include/vast/Interfaces/AST/StmtInterface.hpp +++ b/include/vast/Interfaces/AST/StmtInterface.hpp @@ -11,7 +11,7 @@ VAST_RELAX_WARNINGS #include VAST_RELAX_WARNINGS -#include "clang/AST/Stmt.h" +#include /// Include the generated interface declarations. #include "vast/Interfaces/AST/StmtInterface.h.inc" diff --git a/include/vast/Interfaces/AST/StmtVisitor.h b/include/vast/Interfaces/AST/StmtVisitor.h index e182a0a81f..52a3845642 100644 --- a/include/vast/Interfaces/AST/StmtVisitor.h +++ b/include/vast/Interfaces/AST/StmtVisitor.h @@ -15,12 +15,8 @@ #include "vast/Interfaces/AST/ExprInterface.hpp" -#include "clang/AST/OperationKinds.h" -#include "clang/AST/Stmt.h" - -#include "llvm/ADT/STLExtras.h" -#include "llvm/Support/Casting.h" -#include "llvm/Support/ErrorHandling.h" +#include +#include #include namespace vast::ast { @@ -110,7 +106,7 @@ class StmtVisitorBase { #define ABSTRACT_STMT(STMT) #define STMT(CLASS, PARENT) \ case clang::Stmt::CLASS ## Class: DISPATCH(CLASS, CLASS); -#include "clang/AST/StmtNodes.inc" +#include } } @@ -119,7 +115,7 @@ class StmtVisitorBase { // CLASS je Interface... upravit vhodne nazov #define STMT(CLASS, PARENT) \ RetTy Visit ## CLASS(PTR(CLASS) S, ParamTys... P) { DISPATCH(PARENT, PARENT); } -#include "clang/AST/StmtNodes.inc" +#include // If the implementation doesn't implement binary operator methods, fall back // on VisitBinaryOperator.