diff options
author | ziqingluo-90 <ziqing@udel.edu> | 2023-05-12 11:45:44 -0700 |
---|---|---|
committer | ziqingluo-90 <ziqing@udel.edu> | 2023-05-12 11:50:51 -0700 |
commit | 6d861d498de1320d22771c329ec69f9419ef06b7 (patch) | |
tree | ae9bb2badd8a91ab9dd11b9f0a9ff10c7f39437c /llvm/lib/Support/StringRef.cpp | |
parent | 1644adfc74b4bde822b37398b3811f038073d9a9 (diff) | |
download | llvm-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