[PATCH] D146342: [-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit
Ziqing Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 11 12:26:57 PDT 2023
ziqingluo-90 updated this revision to Diff 521409.
ziqingluo-90 added a comment.
Address comments: refactor the callable-definition visitor to take a lambda Callback, who calls various analyses that need whole-TU information. If one needs to add a new such analysis later, just add a call in the Callback function.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146342/new/
https://reviews.llvm.org/D146342
Files:
clang/include/clang/Sema/AnalysisBasedWarnings.h
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/lib/Sema/Sema.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146342.521409.patch
Type: text/x-patch
Size: 7895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230511/ccf174e3/attachment-0001.bin>
More information about the cfe-commits
mailing list