clang 20.0.0git
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
21namespace clang {
22
24#define TESTLANGUAGE(lang, version, std_flag, version_index) \
25 Lang_##lang##version,
26#include "clang/Testing/TestLanguage.def"
27
31};
32
33std::vector<TestLanguage> getCOrLater(int MinimumStd);
34std::vector<TestLanguage> getCXXOrLater(int MinimumStd);
35
36std::vector<std::string> getCommandLineArgsForTesting(TestLanguage Lang);
37std::vector<std::string> getCC1ArgsForTesting(TestLanguage Lang);
38
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.
44std::string getAnyTargetForTesting();
45
46} // end namespace clang
47
48#endif
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
The JSON file list parser is used to communicate input to InstallAPI.
std::string getAnyTargetForTesting()
Find a target name such that looking for it in TargetRegistry by that name returns the same target.
std::vector< std::string > getCC1ArgsForTesting(TestLanguage Lang)
std::vector< TestLanguage > getCOrLater(int MinimumStd)
std::vector< TestLanguage > getCXXOrLater(int MinimumStd)
StringRef getFilenameForTesting(TestLanguage Lang)
std::vector< std::string > getCommandLineArgsForTesting(TestLanguage Lang)