[PATCH] Add warnings so that Clang can catch most of the cases that GCC's -Waddress can catch
Richard Trieu
rtrieu at google.com
Tue Feb 18 20:31:03 PST 2014
Update patch to feature match GCC's -Waddress.
http://llvm-reviews.chandlerc.com/D2645
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2645?vs=6733&id=7194#toc
Files:
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-cxx11-nowarn.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp
test/CXX/expr/expr.unary/expr.unary.op/p6.cpp
test/SemaCXX/warn-bool-conversion.cpp
test/SemaCXX/warn-func-as-bool.cpp
test/SemaCXX/nullptr_in_arithmetic_ops.cpp
test/SemaCXX/warn-tautological-compare.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/null_in_arithmetic_ops.cpp
test/SemaTemplate/resolve-single-template-id.cpp
test/Analysis/weak-functions.c
test/Analysis/stackaddrleak.c
test/Analysis/casts.c
test/Analysis/ptr-arith.c
test/Sema/const-eval.c
test/Sema/static-init.c
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2645.2.patch
Type: text/x-patch
Size: 31885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140218/3b68b3e0/attachment.bin>
More information about the cfe-commits
mailing list