| Gabor Marton | 1f66753 | 2018-05-24 08:41:07 +0000 | [diff] [blame] | 1 | //===------ unittest/AST/Language.h - AST unit test support ---------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines language options for AST unittests. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H |
| 15 | #define LLVM_CLANG_UNITTESTS_AST_LANGUAGE_H |
| 16 | |
| 17 | #include "llvm/Support/ErrorHandling.h" |
| 18 | #include <vector> |
| 19 | #include <string> |
| 20 | |
| 21 | namespace clang { |
| 22 | namespace ast_matchers { |
| 23 | |
| 24 | typedef std::vector<std::string> ArgVector; |
| Gabor Marton | 1f66753 | 2018-05-24 08:41:07 +0000 | [diff] [blame] | 25 | |
| 26 | enum Language { |
| 27 | Lang_C, |
| 28 | Lang_C89, |
| 29 | Lang_CXX, |
| 30 | Lang_CXX11, |
| 31 | Lang_CXX14, |
| 32 | Lang_OpenCL, |
| 33 | Lang_OBJCXX |
| 34 | }; |
| 35 | |
| Gabor Marton | 1f66753 | 2018-05-24 08:41:07 +0000 | [diff] [blame] | 36 | ArgVector getBasicRunOptionsForLanguage(Language Lang); |
| Gabor Marton | 1f66753 | 2018-05-24 08:41:07 +0000 | [diff] [blame] | 37 | |
| 38 | } // end namespace ast_matchers |
| 39 | } // end namespace clang |
| 40 | |
| 41 | #endif |