clang 22.0.0git
clang::FunctionEffectWithCondition Struct Reference

A FunctionEffect plus a potential boolean expression determining whether the effect is declared (e.g. More...

#include "clang/AST/TypeBase.h"

Public Member Functions

 FunctionEffectWithCondition (FunctionEffect E, const EffectConditionExpr &C)
std::string description () const
 Return a textual description of the effect, and its condition, if any.

Public Attributes

FunctionEffect Effect
EffectConditionExpr Cond

Friends

raw_ostream & operator<< (raw_ostream &OS, const FunctionEffectWithCondition &CFE)

Detailed Description

A FunctionEffect plus a potential boolean expression determining whether the effect is declared (e.g.

nonblocking(expr)). Generally the condition expression when present, is dependent.

Definition at line 5001 of file TypeBase.h.

Constructor & Destructor Documentation

◆ FunctionEffectWithCondition()

clang::FunctionEffectWithCondition::FunctionEffectWithCondition ( FunctionEffect E,
const EffectConditionExpr & C )
inline

Definition at line 5005 of file TypeBase.h.

References clang::C, Cond, and Effect.

Referenced by operator<<.

Member Function Documentation

◆ description()

std::string FunctionEffectWithCondition::description ( ) const

Return a textual description of the effect, and its condition, if any.

Definition at line 5731 of file Type.cpp.

References Cond, Effect, and clang::Result.

Referenced by clang::Sema::diagnoseConflictingFunctionEffect().

◆ operator<<

raw_ostream & operator<< ( raw_ostream & OS,
const FunctionEffectWithCondition & CFE )
friend

Member Data Documentation

◆ Cond

◆ Effect


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