reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGBlocks.cpp
  936   BlockCGF.SanOpts = SanOpts;
  936   BlockCGF.SanOpts = SanOpts;
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1098   if (!SanOpts.has(SanitizerKind::Builtin) || !getTarget().isCLZForZeroUndef())
tools/clang/lib/CodeGen/CGCall.cpp
 2401           if (AVAttr && !SanOpts.has(SanitizerKind::Alignment)) {
 2975   if (SanOpts.has(SanitizerKind::ReturnsNonnullAttribute))
 3354   if (!AC.getDecl() || !(SanOpts.has(SanitizerKind::NonnullAttribute) ||
 3355                          SanOpts.has(SanitizerKind::NullabilityArg)))
 3364   if (SanOpts.has(SanitizerKind::NonnullAttribute))
 3368   if (SanOpts.has(SanitizerKind::NullabilityArg) && !NNAttr && PVD) {
 4417     if (SanOpts.has(SanitizerKind::Unreachable)) {
 4427       if (SanOpts.hasOneOf(SanitizerKind::Address |
tools/clang/lib/CodeGen/CGClass.cpp
  883         : CGF(CGF), OldSanOpts(CGF.SanOpts) {
  884       CGF.SanOpts.set(SanitizerKind::Bool, false);
  885       CGF.SanOpts.set(SanitizerKind::Enum, false);
  888       CGF.SanOpts = OldSanOpts;
 1813         SanOpts.has(SanitizerKind::Memory) && ClassDecl->getNumVBases() &&
 1839       SanOpts.has(SanitizerKind::Memory) && !ClassDecl->getNumVBases() &&
 1863       SanOpts.has(SanitizerKind::Memory))
 2641   if (SanOpts.has(SanitizerKind::CFIVCall))
 2662   if (!SanOpts.has(SanitizerKind::CFICastStrict))
 2685   if (!SanOpts.has(SanitizerKind::CFICastStrict))
 2796   if (!SanOpts.has(SanitizerKind::CFIVCall) ||
 2823   if (SanOpts.has(SanitizerKind::CFIVCall) &&
tools/clang/lib/CodeGen/CGDecl.cpp
  721   if (!SanOpts.has(SanitizerKind::NullabilityAssign))
tools/clang/lib/CodeGen/CGExpr.cpp
  524           !SanOpts.has(SanitizerKind::HWAddress) &&
  525           !SanOpts.has(SanitizerKind::Memory) &&
  647   return SanOpts.has(SanitizerKind::Null) |
  648          SanOpts.has(SanitizerKind::Alignment) |
  649          SanOpts.has(SanitizerKind::ObjectSize) |
  650          SanOpts.has(SanitizerKind::Vptr);
  687   if ((SanOpts.has(SanitizerKind::Null) || AllowNullPointers) &&
  711   if (SanOpts.has(SanitizerKind::ObjectSize) &&
  741   if (SanOpts.has(SanitizerKind::Alignment) &&
  780   if (SanOpts.has(SanitizerKind::Vptr) &&
  962   assert(SanOpts.has(SanitizerKind::ArrayBounds) &&
 1084         if (SanOpts.has(SanitizerKind::CFIUnrelatedCast) &&
 1209   if (SanOpts.has(SanitizerKind::ArrayBounds) && isa<ArraySubscriptExpr>(E))
 1589   bool HasBoolCheck = SanOpts.has(SanitizerKind::Bool);
 1590   bool HasEnumCheck = SanOpts.has(SanitizerKind::Enum);
 3043   assert(SanOpts.has(Checked[0].second));
 3048     assert(SanOpts.has(Checked[i].second));
 3211   SanOpts = CGM.getLangOpts().Sanitize;
 3272   if (SanOpts.has(SanitizerKind::Unreachable)) {
 3467     if (SanOpts.has(SanitizerKind::ArrayBounds))
 4403     if (SanOpts.has(SanitizerKind::CFIDerivedCast))
 4420     if (SanOpts.has(SanitizerKind::CFIUnrelatedCast))
 4789   if (getLangOpts().CPlusPlus && SanOpts.has(SanitizerKind::Function) &&
 4842   if (SanOpts.has(SanitizerKind::CFIICall) &&
tools/clang/lib/CodeGen/CGExprCXX.cpp
  379     if (SanOpts.has(SanitizerKind::CFINVCall) &&
tools/clang/lib/CodeGen/CGExprScalar.cpp
  280         if (isa<ParmVarDecl>(VD) && !CGF.SanOpts.has(SanitizerKind::Alignment))
  718         if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow))
  729         CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow) &&
  982   if (!CGF.SanOpts.hasOneOf(SanitizerKind::ImplicitIntegerTruncation))
 1003   if (CGF.SanOpts.has(SanitizerKind::ImplicitIntegerSignChange) &&
 1016   if (!CGF.SanOpts.has(Check.second.second))
 1090   if (!CGF.SanOpts.has(SanitizerKind::ImplicitIntegerSignChange))
 1122   if (CGF.SanOpts.has(SanitizerKind::ImplicitSignedIntegerTruncation) &&
 1147   if (CGF.SanOpts.has(SanitizerKind::ImplicitSignedIntegerTruncation) &&
 1340   if (CGF.SanOpts.has(SanitizerKind::FloatCastOverflow) &&
 1751   if (CGF.SanOpts.has(SanitizerKind::ArrayBounds))
 2003     if (CGF.SanOpts.has(SanitizerKind::CFIUnrelatedCast)) {
 2077     if (CGF.SanOpts.has(SanitizerKind::CFIDerivedCast))
 2237         Opts = ScalarConversionOpts(CGF.SanOpts);
 2338     if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow))
 2381           CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) &&
 2427                CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) {
 2849           CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) &&
 2913                                 Loc, ScalarConversionOpts(CGF.SanOpts));
 2966   if (CGF.SanOpts.has(SanitizerKind::IntegerDivideByZero)) {
 2972   if (CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow) &&
 2996     if ((CGF.SanOpts.has(SanitizerKind::IntegerDivideByZero) ||
 2997          CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)) &&
 3002     } else if (CGF.SanOpts.has(SanitizerKind::FloatDivideByZero) &&
 3037   if ((CGF.SanOpts.has(SanitizerKind::IntegerDivideByZero) ||
 3038        CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)) &&
 3098     if (!isSigned || CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)) {
 3215   if (CGF.SanOpts.has(SanitizerKind::ArrayBounds))
 3350       if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow))
 3361       CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow) &&
 3495         if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow))
 3506         CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow) &&
 3597   bool SanitizeBase = CGF.SanOpts.has(SanitizerKind::ShiftBase) &&
 3601   bool SanitizeExponent = CGF.SanOpts.has(SanitizerKind::ShiftExponent);
 3669   else if (CGF.SanOpts.has(SanitizerKind::ShiftExponent) &&
 4658   if (!SanOpts.has(SanitizerKind::PointerOverflow))
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  603   if (SanOpts.has(SanitizerKind::Thread)) {
  679       SanOpts.Mask &= ~mask;
  681         SanOpts.set(SanitizerKind::KernelAddress, false);
  683         SanOpts.set(SanitizerKind::Address, false);
  685         SanOpts.set(SanitizerKind::KernelHWAddress, false);
  687         SanOpts.set(SanitizerKind::HWAddress, false);
  692   if (SanOpts.hasOneOf(SanitizerKind::Address | SanitizerKind::KernelAddress))
  694   if (SanOpts.hasOneOf(SanitizerKind::HWAddress | SanitizerKind::KernelHWAddress))
  696   if (SanOpts.has(SanitizerKind::MemTag))
  698   if (SanOpts.has(SanitizerKind::Thread))
  700   if (SanOpts.hasOneOf(SanitizerKind::Memory | SanitizerKind::KernelMemory))
  702   if (SanOpts.has(SanitizerKind::SafeStack))
  704   if (SanOpts.has(SanitizerKind::ShadowCallStack))
  708   if (SanOpts.hasOneOf(SanitizerKind::Fuzzer | SanitizerKind::FuzzerNoLink))
  713   if (SanOpts.has(SanitizerKind::Thread)) {
  727   if (D && SanOpts.has(SanitizerKind::CFIUnrelatedCast)) {
  729       SanOpts.Mask &= ~SanitizerKind::CFIUnrelatedCast;
  735   if (D && SanOpts.has(SanitizerKind::Null))
  739         SanOpts.Mask &= ~SanitizerKind::Null;
  782   if (getLangOpts().CPlusPlus && SanOpts.has(SanitizerKind::Function)) {
  805   if (SanOpts.has(SanitizerKind::NullabilityReturn)) {
  808       if (!(SanOpts.has(SanitizerKind::ReturnsNonnullAttribute) &&
 1222     if (SanOpts.has(SanitizerKind::Return)) {
 1232     if (SanOpts.has(SanitizerKind::Return) || ShouldEmitUnreachable) {
 1940           if (SanOpts.has(SanitizerKind::VLABound) &&
 2053   if (SanOpts.has(SanitizerKind::Alignment)) {
 2353   if (!SanOpts.has(SanitizerKind::Alignment))
tools/clang/lib/CodeGen/CodeGenFunction.h
 1589            (SanOpts.has(SanitizerKind::ReturnsNonnullAttribute) &&
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  652   bool ShouldEmitCFICheck = CGF.SanOpts.has(SanitizerKind::CFIMFCall) &&