clang  8.0.0svn
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"

Collaboration diagram for clang::driver::ParsedClangName:
Collaboration graph
[legend]

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. More...
 
std::string ModeSuffix
 Driver mode part of the executable name, as g++. More...
 
const char * DriverMode = nullptr
 Corresponding driver mode argument, as '–driver-mode=g++'. More...
 
bool TargetIsValid = false
 True if TargetPrefix is recognized as a registered target name. More...
 

Detailed Description

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

Definition at line 62 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 76 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 78 of file ToolChain.h.

Member Function Documentation

◆ isEmpty()

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

Definition at line 83 of file ToolChain.h.

Referenced by clang::driver::Driver::ParseDriverMode().

Member Data Documentation

◆ DriverMode

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

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

Definition at line 70 of file ToolChain.h.

Referenced by clang::driver::Driver::ParseDriverMode().

◆ ModeSuffix

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

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

Definition at line 67 of file ToolChain.h.

Referenced by searchForFile().

◆ TargetIsValid

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

True if TargetPrefix is recognized as a registered target name.

Definition at line 73 of file ToolChain.h.

◆ TargetPrefix

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

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

Definition at line 64 of file ToolChain.h.

Referenced by searchForFile().


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