ASTFwd.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- ASTFwd.h ----------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===--------------------------------------------------------------===//
  13. ///
  14. /// \file
  15. /// Forward declaration of all AST node types.
  16. ///
  17. //===-------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_AST_ASTFWD_H
  19. #define LLVM_CLANG_AST_ASTFWD_H
  20. namespace clang {
  21. class Decl;
  22. #define DECL(DERIVED, BASE) class DERIVED##Decl;
  23. #include "clang/AST/DeclNodes.inc"
  24. class Stmt;
  25. #define STMT(DERIVED, BASE) class DERIVED;
  26. #include "clang/AST/StmtNodes.inc"
  27. class Type;
  28. #define TYPE(DERIVED, BASE) class DERIVED##Type;
  29. #include "clang/AST/TypeNodes.inc"
  30. class CXXCtorInitializer;
  31. class OMPClause;
  32. #define GEN_CLANG_CLAUSE_CLASS
  33. #define CLAUSE_CLASS(Enum, Str, Class) class Class;
  34. #include "llvm/Frontend/OpenMP/OMP.inc"
  35. class Attr;
  36. #define ATTR(A) class A##Attr;
  37. #include "clang/Basic/AttrList.inc"
  38. } // end namespace clang
  39. #endif
  40. #ifdef __GNUC__
  41. #pragma GCC diagnostic pop
  42. #endif