[PATCH] D79895: Add a new warning to warn when passing uninitialized variables as const reference parameters to a function
Zequan Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 11:57:52 PDT 2020
zequanwu updated this revision to Diff 264300.
zequanwu added a comment.
Since the new warning is controlled by `-Wuninitialized`, I disabled it in existing test case and added a separate test case for `-Wuninitialized-const-reference`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79895/new/
https://reviews.llvm.org/D79895
Files:
clang/include/clang/Analysis/Analyses/UninitializedValues.h
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Analysis/UninitializedValues.cpp
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/test/Misc/warning-wall.c
clang/test/SemaCXX/uninit-variables.cpp
clang/test/SemaCXX/uninitialized.cpp
clang/test/SemaCXX/warn-uninitialized-const-reference.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79895.264300.patch
Type: text/x-patch
Size: 11595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200515/42200a97/attachment-0001.bin>
More information about the cfe-commits
mailing list