[PATCH] Add warnings so that Clang can catch most of the cases that GCC's -Waddress can catch

Richard Trieu rtrieu at google.com
Wed Feb 19 19:01:52 PST 2014


  Address David Majnemer's comments.

http://llvm-reviews.chandlerc.com/D2645

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2645?vs=7194&id=7233#toc

Files:
  test/Analysis/stackaddrleak.c
  test/Analysis/casts.c
  test/Analysis/ptr-arith.c
  test/Analysis/weak-functions.c
  test/Sema/static-init.c
  test/Sema/const-eval.c
  test/CXX/expr/expr.unary/expr.unary.op/p6.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/SemaCXX/nullptr_in_arithmetic_ops.cpp
  test/SemaCXX/warn-tautological-compare.cpp
  test/SemaCXX/constant-expression-cxx11.cpp
  test/SemaCXX/warn-func-as-bool.cpp
  test/SemaCXX/null_in_arithmetic_ops.cpp
  test/SemaCXX/warn-bool-conversion.cpp
  test/SemaTemplate/resolve-single-template-id.cpp
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Sema/Sema.h
  lib/Sema/SemaChecking.cpp
  lib/Sema/SemaExpr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2645.3.patch
Type: text/x-patch
Size: 31228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140219/1fefbd88/attachment.bin>


More information about the cfe-commits mailing list