clang  8.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::SanitizerSet Struct Reference

#include "clang/Basic/Sanitizers.h"

Collaboration diagram for clang::SanitizerSet:
Collaboration graph

Public Member Functions

bool has (SanitizerMask K) const
 Check if a certain (single) sanitizer is enabled. More...
bool hasOneOf (SanitizerMask K) const
 Check if one or more sanitizers are enabled. More...
void set (SanitizerMask K, bool Value)
 Enable or disable a certain (single) sanitizer. More...
void clear (SanitizerMask K=SanitizerKind::All)
 Disable the sanitizers specified in K. More...
bool empty () const
 Returns true if at least one sanitizer is enabled. More...

Public Attributes

SanitizerMask Mask = 0
 Bitmask of enabled sanitizers. More...

Detailed Description

Definition at line 50 of file Sanitizers.h.

Member Function Documentation

◆ clear()

void clang::SanitizerSet::clear ( SanitizerMask  K = SanitizerKind::All)

Disable the sanitizers specified in K.

Definition at line 67 of file Sanitizers.h.

Referenced by checkLanguageOptions().

◆ empty()

bool clang::SanitizerSet::empty ( ) const

Returns true if at least one sanitizer is enabled.

Definition at line 70 of file Sanitizers.h.

Referenced by clang::CompilerInvocation::CreateFromArgs().

◆ has()

bool clang::SanitizerSet::has ( SanitizerMask  K) const

◆ hasOneOf()

bool clang::SanitizerSet::hasOneOf ( SanitizerMask  K) const

◆ set()

void clang::SanitizerSet::set ( SanitizerMask  K,
bool  Value 

Member Data Documentation

◆ Mask

SanitizerMask clang::SanitizerSet::Mask = 0

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