Language.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //===------ unittest/AST/Language.h - AST unit test support ---------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file defines language options for AST unittests.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H
  13. #define LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H
  14. #include "llvm/Support/ErrorHandling.h"
  15. #include <vector>
  16. #include <string>
  17. namespace clang {
  18. namespace ast_matchers {
  19. typedef std::vector<std::string> ArgVector;
  20. enum Language {
  21. Lang_C,
  22. Lang_C89,
  23. Lang_CXX,
  24. Lang_CXX11,
  25. Lang_CXX14,
  26. Lang_CXX2a,
  27. Lang_OpenCL,
  28. Lang_OBJCXX
  29. };
  30. ArgVector getBasicRunOptionsForLanguage(Language Lang);
  31. } // end namespace ast_matchers
  32. } // end namespace clang
  33. #endif