clang  14.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"

Collaboration diagram for clang::TestClangConfig:
Collaboration graph
[legend]

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 supportsCXXDynamicExceptionSpecification () const
 
bool hasDelayedTemplateParsing () const
 
std::vector< std::stringgetCommandLineArgs () const
 
std::string toString () const
 

Public Attributes

TestLanguage Language
 
std::string Target
 The argument of the -target command line flag. More...
 

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 65 of file TestClangConfig.h.

References clang::getCommandLineArgsForTesting(), and Target.

◆ hasDelayedTemplateParsing()

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

Definition at line 61 of file TestClangConfig.h.

References Target.

◆ 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

Definition at line 45 of file TestClangConfig.h.

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

◆ isCXX17OrLater()

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

Definition at line 50 of file TestClangConfig.h.

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

◆ isCXX20OrLater()

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

Definition at line 54 of file TestClangConfig.h.

References clang::Lang_CXX20.

◆ supportsCXXDynamicExceptionSpecification()

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

Definition at line 56 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 72 of file TestClangConfig.h.

References string(), and Target.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 79 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.

Referenced by getCommandLineArgs(), hasDelayedTemplateParsing(), and toString().


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