================
@@ -171,6 +174,17 @@ class MemRegion : public llvm::FoldingSetNode {
 
   Kind getKind() const { return kind; }
 
+  StringRef getKindStr() const {
+    switch (getKind()) {
+#define REGION(Id, Parent)                                                     
\
+  case Id##Kind:                                                               
\
+    return #Id;
+#include "clang/StaticAnalyzer/Core/PathSensitive/Regions.def"
----------------
steakhal wrote:

Please hoist this into a cpp file so that it's not gonna regress compile times 
due to header inclusions.

https://github.com/llvm/llvm-project/pull/95408
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to