[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

Doug Wyatt via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 07:38:57 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,
+
----------------
dougsonos wrote:

Sure. Being explicit with enum values is an ancient habit from the days when debugging sometimes involved looking at memory in hex. I'd agree they're superfluous here.

https://github.com/llvm/llvm-project/pull/99656


More information about the cfe-commits mailing list