clang  9.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::SanitizerMask Class Reference

#include "clang/Basic/Sanitizers.h"

Public Member Functions

 SanitizerMask ()=default
 
unsigned countPopulation () const
 
void flipAllBits ()
 
bool isPowerOf2 () const
 
llvm::hash_code hash_value () const
 
constexpr operator bool () const
 
constexpr bool operator== (const SanitizerMask &V) const
 
SanitizerMaskoperator &= (const SanitizerMask &RHS)
 
SanitizerMaskoperator|= (const SanitizerMask &RHS)
 
constexpr bool operator! () const
 
constexpr bool operator!= (const SanitizerMask &RHS) const
 

Static Public Member Functions

static constexpr bool checkBitPos (const unsigned Pos)
 
static constexpr SanitizerMask bitPosToMask (const unsigned Pos)
 Create a mask with a bit enabled at position Pos. More...
 

Friends

constexpr SanitizerMask operator~ (SanitizerMask v)
 
constexpr SanitizerMask operator & (SanitizerMask a, const SanitizerMask &b)
 
constexpr SanitizerMask operator| (SanitizerMask a, const SanitizerMask &b)
 

Detailed Description

Definition at line 29 of file Sanitizers.h.

Constructor & Destructor Documentation

◆ SanitizerMask()

clang::SanitizerMask::SanitizerMask ( )
default

Member Function Documentation

◆ bitPosToMask()

static constexpr SanitizerMask clang::SanitizerMask::bitPosToMask ( const unsigned  Pos)
inlinestatic

Create a mask with a bit enabled at position Pos.

Definition at line 54 of file Sanitizers.h.

◆ checkBitPos()

static constexpr bool clang::SanitizerMask::checkBitPos ( const unsigned  Pos)
inlinestatic

Definition at line 49 of file Sanitizers.h.

◆ countPopulation()

unsigned clang::SanitizerMask::countPopulation ( ) const
inline

Definition at line 61 of file Sanitizers.h.

Referenced by getRecoverableKind().

◆ flipAllBits()

void clang::SanitizerMask::flipAllBits ( )
inline

Definition at line 68 of file Sanitizers.h.

◆ hash_value()

llvm::hash_code SanitizerMask::hash_value ( ) const

Definition at line 46 of file Sanitizers.cpp.

Referenced by clang::hash_value().

◆ isPowerOf2()

bool clang::SanitizerMask::isPowerOf2 ( ) const
inline

Definition at line 73 of file Sanitizers.h.

References clang::hash_value().

Referenced by clang::SanitizerSet::has().

◆ operator &=()

SanitizerMask& clang::SanitizerMask::operator&= ( const SanitizerMask RHS)
inline

Definition at line 88 of file Sanitizers.h.

◆ operator bool()

constexpr clang::SanitizerMask::operator bool ( ) const
inlineexplicit

Definition at line 79 of file Sanitizers.h.

◆ operator!()

constexpr bool clang::SanitizerMask::operator! ( ) const
inline

Definition at line 100 of file Sanitizers.h.

References bool.

◆ operator!=()

constexpr bool clang::SanitizerMask::operator!= ( const SanitizerMask RHS) const
inline

Definition at line 102 of file Sanitizers.h.

◆ operator==()

constexpr bool clang::SanitizerMask::operator== ( const SanitizerMask V) const
inline

Definition at line 83 of file Sanitizers.h.

◆ operator|=()

SanitizerMask& clang::SanitizerMask::operator|= ( const SanitizerMask RHS)
inline

Definition at line 94 of file Sanitizers.h.

Friends And Related Function Documentation

◆ operator &

constexpr SanitizerMask operator& ( SanitizerMask  a,
const SanitizerMask b 
)
friend

Definition at line 110 of file Sanitizers.h.

◆ operator|

constexpr SanitizerMask operator| ( SanitizerMask  a,
const SanitizerMask b 
)
friend

Definition at line 116 of file Sanitizers.h.

◆ operator~

constexpr SanitizerMask operator~ ( SanitizerMask  v)
friend

Definition at line 106 of file Sanitizers.h.


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