clang 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
clang::TestClangConfig Struct Reference

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)
 

Detailed Description

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.

Member Function Documentation

◆ getCommandLineArgs()

std::vector< std::string > clang::TestClangConfig::getCommandLineArgs ( ) const
inline

Definition at line 124 of file TestClangConfig.h.

References clang::getCommandLineArgsForTesting(), and clang::Result.

◆ hasDelayedTemplateParsing()

bool clang::TestClangConfig::hasDelayedTemplateParsing ( ) const
inline

Definition at line 120 of file TestClangConfig.h.

◆ isC() [1/2]

bool clang::TestClangConfig::isC ( ) const
inline

Definition at line 30 of file TestClangConfig.h.

Referenced by isCOrEarlier().

◆ isC() [2/2]

bool clang::TestClangConfig::isC ( int  Version) const
inline

Definition at line 38 of file TestClangConfig.h.

◆ isC99OrLater()

bool clang::TestClangConfig::isC99OrLater ( ) const
inline

Definition at line 62 of file TestClangConfig.h.

References isCOrLater().

◆ isCOrEarlier()

bool clang::TestClangConfig::isCOrEarlier ( int  MaximumStdVersion) const
inline

Definition at line 64 of file TestClangConfig.h.

References isC(), and isCOrLater().

◆ isCOrLater()

bool clang::TestClangConfig::isCOrLater ( int  MinimumStdVersion) const
inline

Definition at line 46 of file TestClangConfig.h.

Referenced by isC99OrLater(), and isCOrEarlier().

◆ isCXX() [1/2]

bool clang::TestClangConfig::isCXX ( ) const
inline

Definition at line 68 of file TestClangConfig.h.

Referenced by isCXXOrEarlier().

◆ isCXX() [2/2]

bool clang::TestClangConfig::isCXX ( int  Version) const
inline

Definition at line 76 of file TestClangConfig.h.

◆ isCXX11OrLater()

bool clang::TestClangConfig::isCXX11OrLater ( ) const
inline

Definition at line 100 of file TestClangConfig.h.

References isCXXOrLater().

◆ isCXX14OrLater()

bool clang::TestClangConfig::isCXX14OrLater ( ) const
inline

Definition at line 102 of file TestClangConfig.h.

References isCXXOrLater().

◆ isCXX17OrLater()

bool clang::TestClangConfig::isCXX17OrLater ( ) const
inline

Definition at line 104 of file TestClangConfig.h.

References isCXXOrLater().

◆ isCXX20OrLater()

bool clang::TestClangConfig::isCXX20OrLater ( ) const
inline

Definition at line 106 of file TestClangConfig.h.

References isCXXOrLater().

◆ isCXX23OrLater()

bool clang::TestClangConfig::isCXX23OrLater ( ) const
inline

Definition at line 108 of file TestClangConfig.h.

References isCXXOrLater().

◆ isCXXOrEarlier()

bool clang::TestClangConfig::isCXXOrEarlier ( int  MaximumStdVersion) const
inline

Definition at line 110 of file TestClangConfig.h.

References isCXX(), and isCXXOrLater().

◆ isCXXOrLater()

bool clang::TestClangConfig::isCXXOrLater ( int  MinimumStdVersion) const
inline

◆ supportsCXXDynamicExceptionSpecification()

bool clang::TestClangConfig::supportsCXXDynamicExceptionSpecification ( ) const
inline

Definition at line 115 of file TestClangConfig.h.

◆ toShortString()

std::string clang::TestClangConfig::toShortString ( ) const
inline

◆ toString()

std::string clang::TestClangConfig::toString ( ) const
inline

Definition at line 155 of file TestClangConfig.h.

References clang::Result.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  OS,
const TestClangConfig ClangConfig 
)
friend

Definition at line 162 of file TestClangConfig.h.

Member Data Documentation

◆ Language

TestLanguage clang::TestClangConfig::Language

Definition at line 25 of file TestClangConfig.h.

◆ Target

std::string clang::TestClangConfig::Target

The argument of the -target command line flag.

Definition at line 28 of file TestClangConfig.h.


The documentation for this struct was generated from the following file: