clang  12.0.0git
Public Member Functions | List of all members
clang::driver::SanitizerArgs Class Reference

#include "clang/Driver/SanitizerArgs.h"

Public Member Functions

 SanitizerArgs (const ToolChain &TC, const llvm::opt::ArgList &Args)
 Parses the sanitizer arguments from an argument list. More...
 
bool needsSharedRt () const
 
bool needsAsanRt () const
 
bool needsHwasanRt () const
 
bool needsTsanRt () const
 
bool needsMsanRt () const
 
bool needsFuzzer () const
 
bool needsLsanRt () const
 
bool needsUbsanRt () const
 
bool requiresMinimalRuntime () const
 
bool needsDfsanRt () const
 
bool needsSafeStackRt () const
 
bool needsCfiRt () const
 
bool needsCfiDiagRt () const
 
bool needsStatsRt () const
 
bool needsScudoRt () const
 
bool requiresPIE () const
 
bool needsUnwindTables () const
 
bool needsLTO () const
 
bool linkRuntimes () const
 
bool linkCXXRuntimes () const
 
bool hasCrossDsoCfi () const
 
bool hasAnySanitizer () const
 
void addArgs (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const
 

Detailed Description

Definition at line 23 of file SanitizerArgs.h.

Constructor & Destructor Documentation

◆ SanitizerArgs()

SanitizerArgs::SanitizerArgs ( const ToolChain TC,
const llvm::opt::ArgList &  Args 
)

Member Function Documentation

◆ addArgs()

void SanitizerArgs::addArgs ( const ToolChain TC,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
types::ID  InputType 
) const

◆ hasAnySanitizer()

bool clang::driver::SanitizerArgs::hasAnySanitizer ( ) const
inline

◆ hasCrossDsoCfi()

bool clang::driver::SanitizerArgs::hasCrossDsoCfi ( ) const
inline

Definition at line 91 of file SanitizerArgs.h.

◆ linkCXXRuntimes()

bool clang::driver::SanitizerArgs::linkCXXRuntimes ( ) const
inline

Definition at line 90 of file SanitizerArgs.h.

Referenced by collectSanitizerRuntimes().

◆ linkRuntimes()

bool clang::driver::SanitizerArgs::linkRuntimes ( ) const
inline

Definition at line 89 of file SanitizerArgs.h.

Referenced by collectSanitizerRuntimes().

◆ needsAsanRt()

bool clang::driver::SanitizerArgs::needsAsanRt ( ) const
inline

◆ needsCfiDiagRt()

bool SanitizerArgs::needsCfiDiagRt ( ) const

Definition at line 259 of file SanitizerArgs.cpp.

Referenced by collectSanitizerRuntimes(), and needsSafeStackRt().

◆ needsCfiRt()

bool SanitizerArgs::needsCfiRt ( ) const

Definition at line 254 of file SanitizerArgs.cpp.

Referenced by collectSanitizerRuntimes(), and needsSafeStackRt().

◆ needsDfsanRt()

bool clang::driver::SanitizerArgs::needsDfsanRt ( ) const
inline

Definition at line 79 of file SanitizerArgs.h.

References clang::SanitizerSet::has().

Referenced by collectSanitizerRuntimes().

◆ needsFuzzer()

bool clang::driver::SanitizerArgs::needsFuzzer ( ) const
inline

◆ needsHwasanRt()

bool clang::driver::SanitizerArgs::needsHwasanRt ( ) const
inline

Definition at line 66 of file SanitizerArgs.h.

References clang::SanitizerSet::has().

Referenced by collectSanitizerRuntimes().

◆ needsLsanRt()

bool clang::driver::SanitizerArgs::needsLsanRt ( ) const
inline

◆ needsLTO()

bool SanitizerArgs::needsLTO ( ) const

Definition at line 272 of file SanitizerArgs.cpp.

References NeedsLTO.

Referenced by needsScudoRt().

◆ needsMsanRt()

bool clang::driver::SanitizerArgs::needsMsanRt ( ) const
inline

Definition at line 70 of file SanitizerArgs.h.

References clang::SanitizerSet::has().

Referenced by collectSanitizerRuntimes().

◆ needsSafeStackRt()

bool clang::driver::SanitizerArgs::needsSafeStackRt ( ) const
inline

Definition at line 80 of file SanitizerArgs.h.

References needsCfiDiagRt(), and needsCfiRt().

Referenced by collectSanitizerRuntimes().

◆ needsScudoRt()

bool clang::driver::SanitizerArgs::needsScudoRt ( ) const
inline

◆ needsSharedRt()

bool clang::driver::SanitizerArgs::needsSharedRt ( ) const
inline

◆ needsStatsRt()

bool clang::driver::SanitizerArgs::needsStatsRt ( ) const
inline

◆ needsTsanRt()

bool clang::driver::SanitizerArgs::needsTsanRt ( ) const
inline

◆ needsUbsanRt()

bool SanitizerArgs::needsUbsanRt ( ) const

◆ needsUnwindTables()

bool SanitizerArgs::needsUnwindTables ( ) const

Definition at line 268 of file SanitizerArgs.cpp.

References NeedsUnwindTables.

Referenced by needsScudoRt().

◆ requiresMinimalRuntime()

bool clang::driver::SanitizerArgs::requiresMinimalRuntime ( ) const
inline

◆ requiresPIE()

bool SanitizerArgs::requiresPIE ( ) const

The documentation for this class was generated from the following files: