| 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 | |
| 13 | #ifndef LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H |
| 14 | #define LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H |
| 15 | |
| 16 | #include "llvm/Support/ErrorHandling.h" |
| 17 | #include <vector> |
| 18 | #include <string> |
| 19 | |
| 20 | namespace clang { |
| 21 | namespace ast_matchers { |
| 22 | |
| 23 | typedef std::vector<std::string> ArgVector; |
| 24 | |
| 25 | enum Language { |
| 26 | Lang_C, |
| 27 | Lang_C89, |
| 28 | Lang_CXX, |
| 29 | Lang_CXX11, |
| 30 | Lang_CXX14, |
| 31 | Lang_OpenCL, |
| 32 | Lang_OBJCXX |
| 33 | }; |
| 34 | |
| 35 | ArgVector getBasicRunOptionsForLanguage(Language Lang); |
| 36 | |
| 37 | } // end namespace ast_matchers |
| 38 | } // end namespace clang |
| 39 | |
| 40 | #endif |
| 41 |