clang 20.0.0git
|
A Clang configuration for end-to-end tests that can be converted to command line arguments for the driver. More...
#include "clang/Testing/TestClangConfig.h"
Public Member Functions | |
bool | isC () const |
bool | isC (int Version) const |
bool | isCOrLater (int MinimumStdVersion) const |
bool | isC99OrLater () const |
bool | isCOrEarlier (int MaximumStdVersion) const |
bool | isCXX () const |
bool | isCXX (int Version) const |
bool | isCXXOrLater (int MinimumStdVersion) const |
bool | isCXX11OrLater () const |
bool | isCXX14OrLater () const |
bool | isCXX17OrLater () const |
bool | isCXX20OrLater () const |
bool | isCXX23OrLater () const |
bool | isCXXOrEarlier (int MaximumStdVersion) const |
bool | supportsCXXDynamicExceptionSpecification () const |
bool | hasDelayedTemplateParsing () const |
std::vector< std::string > | getCommandLineArgs () const |
std::string | toShortString () const |
std::string | toString () const |
Public Attributes | |
TestLanguage | Language |
std::string | Target |
The argument of the -target command line flag. | |
Friends | |
std::ostream & | operator<< (std::ostream &OS, const TestClangConfig &ClangConfig) |
A Clang configuration for end-to-end tests that can be converted to command line arguments for the driver.
The configuration is represented as typed, named values, making it easier and safer to work with compared to an array of string command line flags.
Definition at line 24 of file TestClangConfig.h.
|
inline |
Definition at line 124 of file TestClangConfig.h.
References clang::getCommandLineArgsForTesting(), and clang::Result.
|
inline |
Definition at line 120 of file TestClangConfig.h.
|
inline |
Definition at line 30 of file TestClangConfig.h.
Referenced by isCOrEarlier().
Definition at line 38 of file TestClangConfig.h.
|
inline |
Definition at line 62 of file TestClangConfig.h.
References isCOrLater().
Definition at line 64 of file TestClangConfig.h.
References isC(), and isCOrLater().
Definition at line 46 of file TestClangConfig.h.
Referenced by isC99OrLater(), and isCOrEarlier().
|
inline |
Definition at line 68 of file TestClangConfig.h.
Referenced by isCXXOrEarlier().
Definition at line 76 of file TestClangConfig.h.
|
inline |
Definition at line 100 of file TestClangConfig.h.
References isCXXOrLater().
|
inline |
Definition at line 102 of file TestClangConfig.h.
References isCXXOrLater().
|
inline |
Definition at line 104 of file TestClangConfig.h.
References isCXXOrLater().
|
inline |
Definition at line 106 of file TestClangConfig.h.
References isCXXOrLater().
|
inline |
Definition at line 108 of file TestClangConfig.h.
References isCXXOrLater().
Definition at line 110 of file TestClangConfig.h.
References isCXX(), and isCXXOrLater().
Definition at line 84 of file TestClangConfig.h.
Referenced by isCXX11OrLater(), isCXX14OrLater(), isCXX17OrLater(), isCXX20OrLater(), isCXX23OrLater(), and isCXXOrEarlier().
|
inline |
Definition at line 115 of file TestClangConfig.h.
|
inline |
Definition at line 131 of file TestClangConfig.h.
References clang::Lang_OBJC, clang::Lang_OBJCXX, clang::Lang_OpenCL, and clang::Result.
|
inline |
Definition at line 155 of file TestClangConfig.h.
References clang::Result.
|
friend |
Definition at line 162 of file TestClangConfig.h.
TestLanguage clang::TestClangConfig::Language |
Definition at line 25 of file TestClangConfig.h.
std::string clang::TestClangConfig::Target |
The argument of the -target
command line flag.
Definition at line 28 of file TestClangConfig.h.