[PATCH] D143194: [clang][analyzer] Make messages of StdCLibraryFunctionsChecker user-friendly
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 14 07:42:53 PST 2023
Szelethus accepted this revision.
Szelethus added a comment.
This revision is now accepted and ready to land.
LGTM!
================
Comment at: clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:95
+ QualType ArgT, BasicValueFactory &BVF,
+ DescString &Out);
+ /// Append textual description of a numeric range out of [RMin,RMax] to the
----------------
balazske wrote:
> Szelethus wrote:
> > Using a `raw_ostream` as a parameter sounds more elegant than a `SmallString` with a precise stack buffer length. Not to mention that you could call this function with `llvm::errs()` for easy debugging.
> I want to improve this in a later patch. The change does involve not new code too (`getArgDesc` should be changed too and other places where the messages are generated).
Fair enough.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143194/new/
https://reviews.llvm.org/D143194
More information about the cfe-commits
mailing list