aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2021-02-24 11:17:19 -0800
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2021-02-25 15:14:09 -0800
commitc49b600b2f8242612f60637ca9bdbc4e2b31f800 (patch)
treea9ed9dc6fa0c75d1c5f3d4adfef628f3f7e4da30 /clang/lib/Frontend/CompilerInvocation.cpp
parent00b3f2f310b4bc607563c472cd726aaaf9fcb1d4 (diff)
downloadllvm-c49b600b2f8242612f60637ca9bdbc4e2b31f800.zip
llvm-c49b600b2f8242612f60637ca9bdbc4e2b31f800.tar.gz
llvm-c49b600b2f8242612f60637ca9bdbc4e2b31f800.tar.bz2
[Remarks] Emit remarks for "auto-init" !annotations
Using the !annotation metadata, emit remarks pointing to code added by `-ftrivial-auto-var-init` that survived the optimizer. Example: ``` auto-init.c:4:7: remark: Initialization inserted by -ftrivial-auto-var-init. [-Rpass-missed=annotation-remarks] int buf[1024]; ^ ``` The tests are testing various situations like calls/stores/other instructions, with debug locations, and extra debug information on purpose: more patches will come to improve the reporting to make it more user-friendly, and these tests will show how the reporting evolves. Differential Revision: https://reviews.llvm.org/D97405
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions