clang 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
clang::FunctionEffectWithCondition Struct Reference

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

#include "clang/AST/Type.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 4840 of file Type.h.

Constructor & Destructor Documentation

◆ FunctionEffectWithCondition()

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

Definition at line 4844 of file Type.h.

Member Function Documentation

◆ description()

std::string FunctionEffectWithCondition::description ( ) const

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

Definition at line 5425 of file Type.cpp.

References Cond, Effect, clang::EffectConditionExpr::getCondition(), clang::FunctionEffect::name(), and clang::Result.

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

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 5387 of file Type.cpp.

Member Data Documentation

◆ Cond

EffectConditionExpr clang::FunctionEffectWithCondition::Cond

◆ Effect

FunctionEffect clang::FunctionEffectWithCondition::Effect

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