clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::driver::ParsedClangName Struct Reference

Helper structure used to pass information extracted from clang executable name such as i686-linux-android-g++. More...

#include "clang/Driver/ToolChain.h"

Public Member Functions

 ParsedClangName ()=default
 
 ParsedClangName (std::string Suffix, const char *Mode)
 
 ParsedClangName (std::string Target, std::string Suffix, const char *Mode, bool IsRegistered)
 
bool isEmpty () const
 

Public Attributes

std::string TargetPrefix
 Target part of the executable name, as i686-linux-android.
 
std::string ModeSuffix
 Driver mode part of the executable name, as g++.
 
const char * DriverMode = nullptr
 Corresponding driver mode argument, as '–driver-mode=g++'.
 
bool TargetIsValid = false
 True if TargetPrefix is recognized as a registered target name.
 

Detailed Description

Helper structure used to pass information extracted from clang executable name such as i686-linux-android-g++.

Definition at line 65 of file ToolChain.h.

Constructor & Destructor Documentation

◆ ParsedClangName() [1/3]

clang::driver::ParsedClangName::ParsedClangName ( )
default

◆ ParsedClangName() [2/3]

clang::driver::ParsedClangName::ParsedClangName ( std::string  Suffix,
const char *  Mode 
)
inline

Definition at line 79 of file ToolChain.h.

◆ ParsedClangName() [3/3]

clang::driver::ParsedClangName::ParsedClangName ( std::string  Target,
std::string  Suffix,
const char *  Mode,
bool  IsRegistered 
)
inline

Definition at line 81 of file ToolChain.h.

Member Function Documentation

◆ isEmpty()

bool clang::driver::ParsedClangName::isEmpty ( ) const
inline

Definition at line 86 of file ToolChain.h.

References DriverMode, ModeSuffix, and TargetPrefix.

Member Data Documentation

◆ DriverMode

const char* clang::driver::ParsedClangName::DriverMode = nullptr

Corresponding driver mode argument, as '–driver-mode=g++'.

Definition at line 73 of file ToolChain.h.

Referenced by clang::driver::getDriverMode(), and isEmpty().

◆ ModeSuffix

std::string clang::driver::ParsedClangName::ModeSuffix

Driver mode part of the executable name, as g++.

Definition at line 70 of file ToolChain.h.

Referenced by isEmpty().

◆ TargetIsValid

bool clang::driver::ParsedClangName::TargetIsValid = false

True if TargetPrefix is recognized as a registered target name.

Definition at line 76 of file ToolChain.h.

◆ TargetPrefix

std::string clang::driver::ParsedClangName::TargetPrefix

Target part of the executable name, as i686-linux-android.

Definition at line 67 of file ToolChain.h.

Referenced by isEmpty().


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