This way we highlight a particular unsafe subexpression by providing more accurate source location than begin of an entire statement.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D141340
[-Wunsafe-buffer-usage] Use relevant source locations for warnings ClosedPublic Authored by jkorous on Jan 9 2023, 5:52 PM.
Details Summary This way we highlight a particular unsafe subexpression by providing more accurate source location than begin of an entire statement.
Diff Detail
Event Timelinejkorous added a child revision: D141356: [-Wunsafe-buffer-usage] Group diagnostics by variable.Jan 9 2023, 11:50 PM jkorous added reviewers: aaron.ballman, xazax.hun, gribozavr, ymandel, sgatev, steakhal.Jan 10 2023, 5:14 PM jkorous marked 4 inline comments as done. Comment ActionsAddressed the comments about use of auto in declarations. This revision is now accepted and ready to land.Jan 18 2023, 11:27 AM This revision was landed with ongoing or failed builds.Jan 18 2023, 2:19 PM Closed by commit rG39a63fc7fe98: [-Wunsafe-buffer-usage] Use relevant source locations for warnings (authored by jkorous). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 490291 clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage-source-ranges.cpp
|