]> granicus.if.org Git - clang/commit
Cleaning up the self initialization checker.
authorRichard Trieu <rtrieu@google.com>
Mon, 1 Oct 2012 17:39:51 +0000 (17:39 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 1 Oct 2012 17:39:51 +0000 (17:39 +0000)
commit568f785a76e0a21de20932abf09ce7653e651f92
tree252635df0704589c838cbc38f1e155b8b7e995d8
parentca5d78d0bc3010164f2f9682967d64d7e305a167
Cleaning up the self initialization checker.
-Allow Sema to do more processing on the initial Expr before checking it.
-Remove the special conditions in HandleExpr()
-Move the code so that only one call site is needed.
-Removed the function from Sema and only call it locally.
-Warn on potentially evaluated reference variables, not just casts to r-values.
-Update tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164951 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaInit.cpp
test/Parser/cxx0x-condition.cpp
test/SemaCXX/uninitialized.cpp