clang
17.0.0git
include
clang
Testing
CommandLineArgs.h
Go to the documentation of this file.
1
//===--- CommandLineArgs.h ------------------------------------------------===//
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 Clang unittests.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_CLANG_TESTING_COMMANDLINEARGS_H
14
#define LLVM_CLANG_TESTING_COMMANDLINEARGS_H
15
16
#include "
clang/Basic/LLVM.h
"
17
#include "llvm/ADT/StringRef.h"
18
#include <string>
19
#include <vector>
20
21
namespace
clang
{
22
23
enum
TestLanguage
{
24
Lang_C89
,
25
Lang_C99
,
26
Lang_CXX03
,
27
Lang_CXX11
,
28
Lang_CXX14
,
29
Lang_CXX17
,
30
Lang_CXX20
,
31
Lang_OpenCL
,
32
Lang_OBJC
,
33
Lang_OBJCXX
34
};
35
36
std::vector<std::string>
getCommandLineArgsForTesting
(
TestLanguage
Lang);
37
std::vector<std::string>
getCC1ArgsForTesting
(
TestLanguage
Lang);
38
39
StringRef
getFilenameForTesting
(
TestLanguage
Lang);
40
41
/// Find a target name such that looking for it in TargetRegistry by that name
42
/// returns the same target. We expect that there is at least one target
43
/// configured with this property.
44
std::string
getAnyTargetForTesting
();
45
46
}
// end namespace clang
47
48
#endif
LLVM.h
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
clang
Definition:
CalledOnceCheck.h:17
clang::getAnyTargetForTesting
std::string getAnyTargetForTesting()
Find a target name such that looking for it in TargetRegistry by that name returns the same target.
Definition:
CommandLineArgs.cpp:113
clang::TestLanguage
TestLanguage
Definition:
CommandLineArgs.h:23
clang::Lang_CXX17
@ Lang_CXX17
Definition:
CommandLineArgs.h:29
clang::Lang_CXX11
@ Lang_CXX11
Definition:
CommandLineArgs.h:27
clang::Lang_OpenCL
@ Lang_OpenCL
Definition:
CommandLineArgs.h:31
clang::Lang_C99
@ Lang_C99
Definition:
CommandLineArgs.h:25
clang::Lang_OBJCXX
@ Lang_OBJCXX
Definition:
CommandLineArgs.h:33
clang::Lang_OBJC
@ Lang_OBJC
Definition:
CommandLineArgs.h:32
clang::Lang_CXX03
@ Lang_CXX03
Definition:
CommandLineArgs.h:26
clang::Lang_CXX14
@ Lang_CXX14
Definition:
CommandLineArgs.h:28
clang::Lang_CXX20
@ Lang_CXX20
Definition:
CommandLineArgs.h:30
clang::Lang_C89
@ Lang_C89
Definition:
CommandLineArgs.h:24
clang::getCC1ArgsForTesting
std::vector< std::string > getCC1ArgsForTesting(TestLanguage Lang)
Definition:
CommandLineArgs.cpp:52
clang::getFilenameForTesting
StringRef getFilenameForTesting(TestLanguage Lang)
Definition:
CommandLineArgs.cpp:88
clang::getCommandLineArgsForTesting
std::vector< std::string > getCommandLineArgsForTesting(TestLanguage Lang)
Definition:
CommandLineArgs.cpp:15
Generated on Tue Mar 28 2023 20:57:17 for clang by
1.9.6