[clang] [analyzer] Explicitly register NoStoreFuncVisitor from alpha.unix.cst… (PR #108373)
Donát Nagy via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 09:04:55 PDT 2024
================
@@ -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!");
+}
----------------
NagyDonat wrote:
Do I understand it correctly that this is just debug helper code? (That's fine, it's good to have some useful debug tools, no action expected.)
https://github.com/llvm/llvm-project/pull/108373
More information about the cfe-commits
mailing list