enum ConstantEmissionKind
Description
Can we constant-emit a load of a reference to a variable of the given type? This is different from predicates like Decl::mightBeUsableInConstantExpressions because we do want it to apply in situations that don't necessarily satisfy the language's rules for this (e.g. C++'s ODR-use rules). For example, we want to able to do this with const float variables even if those variables aren't marked 'constexpr'.
Declared at: clang/lib/CodeGen/CGExpr.cpp:1491
Enumerators
Name | Value | Comment |
---|---|---|
CEK_None | 0 | |
CEK_AsReferenceOnly | 1 | |
CEK_AsValueOrReference | 2 | |
CEK_AsValueOnly | 3 |