clang 19.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 isC99OrLater () const
 
bool isCXX () const
 
bool isCXX11OrLater () const
 
bool isCXX14OrLater () const
 
bool isCXX17OrLater () const
 
bool isCXX20OrLater () const
 
bool isCXX23OrLater () const
 
bool supportsCXXDynamicExceptionSpecification () const
 
bool hasDelayedTemplateParsing () const
 
std::vector< std::string > getCommandLineArgs () 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 71 of file TestClangConfig.h.

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

◆ hasDelayedTemplateParsing()

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

Definition at line 67 of file TestClangConfig.h.

◆ isC()

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

Definition at line 30 of file TestClangConfig.h.

References clang::Lang_C89, and clang::Lang_C99.

◆ isC99OrLater()

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

Definition at line 32 of file TestClangConfig.h.

References clang::Lang_C99.

◆ isCXX()

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

◆ isCXX11OrLater()

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

◆ isCXX14OrLater()

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

◆ isCXX17OrLater()

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

Definition at line 51 of file TestClangConfig.h.

References clang::Lang_CXX17, clang::Lang_CXX20, and clang::Lang_CXX23.

◆ isCXX20OrLater()

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

Definition at line 56 of file TestClangConfig.h.

References clang::Lang_CXX20, and clang::Lang_CXX23.

◆ isCXX23OrLater()

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

Definition at line 60 of file TestClangConfig.h.

References clang::Lang_CXX23.

◆ supportsCXXDynamicExceptionSpecification()

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

Definition at line 62 of file TestClangConfig.h.

References clang::Lang_CXX03, clang::Lang_CXX11, and clang::Lang_CXX14.

◆ toString()

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

Definition at line 78 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 85 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: