[PATCH] D101526: [analyzer][StdLibraryFunctionsChecker] Add NoteTags for applied arg constraints
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 25 15:21:59 PDT 2022
NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.
Looks great to me, thanks!!
================
Comment at: clang/test/Analysis/std-c-library-functions-arg-constraints-notes.cpp:32-33
__buf_size_arg_constraint_concrete(buf); // \
- // expected-note{{The size of the 1st arg should be equal to or less than the value of 10}} \
+ // expected-note{{The size of the 1st argument should be equal to or greater than the value of 10}} \
// expected-warning{{}}
break;
----------------
The warning is the same as the note here right?
Our warnings traditionally describe the problem (the 1st argument *is* less than 10, and this *is* bad because...), not how things "should" be. I guess we can think more about that later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101526/new/
https://reviews.llvm.org/D101526
More information about the cfe-commits
mailing list