Skip to content

Commit

Permalink
interfaces:ast: Unify include format.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthro-poid committed Jul 30, 2024
1 parent 44d3739 commit 64fb227
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/vast/Interfaces/AST/ExprInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <clang/AST/Expr.h>

/// Include the generated interface declarations.
#include "vast/Interfaces/AST/ExprInterface.h.inc"
2 changes: 1 addition & 1 deletion include/vast/Interfaces/AST/StmtInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VAST_RELAX_WARNINGS
#include <mlir/IR/OperationSupport.h>
VAST_RELAX_WARNINGS

#include "clang/AST/Stmt.h"
#include <clang/AST/Stmt.h>

/// Include the generated interface declarations.
#include "vast/Interfaces/AST/StmtInterface.h.inc"

Check failure on line 17 in include/vast/Interfaces/AST/StmtInterface.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (18, 22.04)

include/vast/Interfaces/AST/StmtInterface.hpp:17:10 [clang-diagnostic-error]

'vast/Interfaces/AST/StmtInterface.h.inc' file not found
12 changes: 4 additions & 8 deletions include/vast/Interfaces/AST/StmtVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <clang/AST/OperationKinds.h>
#include <clang/AST/Stmt.h>
#include <utility>

namespace vast::ast {
Expand Down Expand Up @@ -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 <clang/AST/StmtNodes.inc>
}
}

Expand All @@ -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 <clang/AST/StmtNodes.inc>

// If the implementation doesn't implement binary operator methods, fall back
// on VisitBinaryOperator.
Expand Down

0 comments on commit 64fb227

Please sign in to comment.