[PATCH] Make UninitializedValues detect the use of uninitialized fields in a constructor.

Enrico P epertoso at google.com
Thu Nov 14 08:33:49 PST 2013


Hi klimek,

This patch removes DiagnoseUninitializedFields from SemaDeclCXX, and modifies the UninitializedValues checker to detect the use of uninitialized fields not only in member initializer lists, but also in the constructor bodies.

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

Files:
  lib/Analysis/UninitializedValues.cpp
  lib/Sema/AnalysisBasedWarnings.cpp
  lib/Sema/SemaDeclCXX.cpp
  test/SemaCXX/uninitialized.cpp
  test/SemaCXX/constructor-initializer.cpp
  test/SemaCXX/defaulted-ctor-loop.cpp
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Analysis/Analyses/UninitializedValues.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2181.1.patch
Type: text/x-patch
Size: 54826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131114/f59f0318/attachment.bin>


More information about the cfe-commits mailing list