[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 06:34:13 PDT 2024
================
@@ -4712,12 +4715,13 @@ class FunctionEffect {
public:
/// Identifies the particular effect.
enum class Kind : uint8_t {
- None = 0,
- NonBlocking = 1,
- NonAllocating = 2,
- Blocking = 3,
- Allocating = 4
+ NonBlocking = 0,
+ NonAllocating = 1,
+ Blocking = 2,
+ Allocating = 3,
+
----------------
erichkeane wrote:
Would there be a value to an `EndList` sort of element, so you could use that to auto-generate `KindCount`?
Also, is there some meaning to the values of the enums besides just wanting the default behavior of enums?
https://github.com/llvm/llvm-project/pull/99656
More information about the cfe-commits
mailing list