[PATCH] D125532: [analyzer] Introduce clang_analyzer_dumpSvalType introspection function
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 13 05:44:58 PDT 2022
martong accepted this revision.
martong added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp:268
+ QualType Ty = C.getSVal(Arg).getType(C.getASTContext());
+ reportBug(Ty.getAsString(), C);
+}
----------------
Would it make sense to call `Ty->dump(OS)` to a stream and then report the string of the stream?
That way we could see some more information. Or perhaps that could be done in another introspection function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125532/new/
https://reviews.llvm.org/D125532
More information about the cfe-commits
mailing list