aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorziqingluo-90 <ziqing@udel.edu>2023-05-12 11:45:44 -0700
committerziqingluo-90 <ziqing@udel.edu>2023-05-12 11:50:51 -0700
commit6d861d498de1320d22771c329ec69f9419ef06b7 (patch)
treeae9bb2badd8a91ab9dd11b9f0a9ff10c7f39437c /llvm/lib/Support/StringRef.cpp
parent1644adfc74b4bde822b37398b3811f038073d9a9 (diff)
downloadllvm-6d861d498de1320d22771c329ec69f9419ef06b7.zip
llvm-6d861d498de1320d22771c329ec69f9419ef06b7.tar.gz
llvm-6d861d498de1320d22771c329ec69f9419ef06b7.tar.bz2
[-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit
The unsafe-buffer analysis requires a complete view of the translation unit (TU) to be conservative. So the analysis is moved to the end of a TU. A summary of changes made: add a new `IssueWarnings` function in `AnalysisBasedWarnings.cpp` for TU-based analyses. So far [-Wunsafe-buffer-usage] is the only analysis using it but there could be more. `Sema` will call the new `IssueWarnings` function at the end of parsing a TU. Reviewed by: NoQ (Artem Dergachev) Differential revision: https://reviews.llvm.org/D146342
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions