Clang Project

clang_source_code/unittests/AST/Language.h
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
20namespace clang {
21namespace ast_matchers {
22
23typedef std::vector<std::stringArgVector;
24
25enum Language {
26    Lang_C,
27    Lang_C89,
28    Lang_CXX,
29    Lang_CXX11,
30    Lang_CXX14,
31    Lang_OpenCL,
32    Lang_OBJCXX
33};
34
35ArgVector getBasicRunOptionsForLanguage(Language Lang);
36
37// end namespace ast_matchers
38// end namespace clang
39
40#endif
41