================
@@ -263,6 +263,23 @@ bool SVal::isZeroConstant() const {
// Pretty-Printing.
//===----------------------------------------------------------------------===//
+StringRef SVal::getKindStr() const {
+ switch (getKind()) {
+#define BASIC_SVAL(Id, Parent)
\
+ case Id##Kind:
\
+ return #Id;
+#define LOC_SVAL(Id, Parent)
\
+ case Loc##Id##Kind:
\
+ return #Id;
+#define NONLOC_SVAL(Id, Parent)
\
+ case NonLoc##Id##Kind:
\
+ return #Id;
+#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
+#undef REGION
+ }
+ llvm_unreachable("Unkown kind!");
+}
----------------
Szelethus wrote:
Yep. I recall back in the day that I asked authors to separate this into
smaller patches, but yeah, I've grown old and lazy. I think this is tolerable :)
https://github.com/llvm/llvm-project/pull/108373
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits