clang API Documentation
#include <SanitizerArgs.h>
Public Member Functions | |
SanitizerArgs (const ToolChain &TC, const llvm::opt::ArgList &Args) | |
Parses the sanitizer arguments from an argument list. | |
bool | needsAsanRt () const |
bool | needsSharedAsanRt () const |
bool | needsTsanRt () const |
bool | needsMsanRt () const |
bool | needsLsanRt () const |
bool | needsUbsanRt () const |
bool | needsDfsanRt () const |
bool | sanitizesVptr () const |
bool | hasZeroBaseShadow () const |
bool | needsUnwindTables () const |
bool | linkCXXRuntimes () const |
void | addArgs (const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const |
Definition at line 23 of file SanitizerArgs.h.
SanitizerArgs::SanitizerArgs | ( | const ToolChain & | TC, |
const llvm::opt::ArgList & | Args | ||
) |
Parses the sanitizer arguments from an argument list.
Definition at line 164 of file SanitizerArgs.cpp.
References addAllOf(), clang::driver::Driver::CCCIsCXX(), clang::serialized_diags::create(), describeSanitizeArg(), clang::driver::Driver::Diag(), expandGroups(), clang::driver::ToolChain::getDriver(), getToolchainUnsupportedKinds(), clang::driver::ToolChain::getTriple(), hasOneOf(), lastArgumentForKind(), lastArgumentForMask(), parseArgument(), and S.
void SanitizerArgs::addArgs | ( | const llvm::opt::ArgList & | Args, |
llvm::opt::ArgStringList & | CmdArgs | ||
) | const |
Definition at line 360 of file SanitizerArgs.cpp.
References toString().
Referenced by clang::driver::tools::Clang::ConstructJob().
bool SanitizerArgs::hasZeroBaseShadow | ( | ) | const |
Definition at line 143 of file SanitizerArgs.cpp.
References hasOneOf().
Referenced by clang::driver::toolchains::FreeBSD::isPIEDefault(), and clang::driver::toolchains::Linux::isPIEDefault().
bool clang::driver::SanitizerArgs::linkCXXRuntimes | ( | ) | const [inline] |
Definition at line 54 of file SanitizerArgs.h.
Referenced by collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsAsanRt | ( | ) | const [inline] |
Definition at line 40 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by clang::driver::toolchains::DarwinClang::AddLinkRuntimeLibArgs(), and collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsDfsanRt | ( | ) | const [inline] |
Definition at line 49 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsLsanRt | ( | ) | const [inline] |
Definition at line 44 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsMsanRt | ( | ) | const [inline] |
Definition at line 43 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsSharedAsanRt | ( | ) | const [inline] |
Definition at line 41 of file SanitizerArgs.h.
Referenced by collectSanitizerRuntimes().
bool clang::driver::SanitizerArgs::needsTsanRt | ( | ) | const [inline] |
Definition at line 42 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by collectSanitizerRuntimes().
bool SanitizerArgs::needsUbsanRt | ( | ) | const |
Definition at line 139 of file SanitizerArgs.cpp.
References hasOneOf().
Referenced by clang::driver::toolchains::DarwinClang::AddLinkRuntimeLibArgs(), and collectSanitizerRuntimes().
bool SanitizerArgs::needsUnwindTables | ( | ) | const |
Definition at line 147 of file SanitizerArgs.cpp.
References hasOneOf().
bool clang::driver::SanitizerArgs::sanitizesVptr | ( | ) | const [inline] |
Definition at line 51 of file SanitizerArgs.h.
References clang::SanitizerSet::has().
Referenced by clang::driver::tools::Clang::ConstructJob().