]> granicus.if.org Git - clang/commit
Disable the uninitialized field warning in uninstantiated classes.
authorRichard Trieu <rtrieu@google.com>
Wed, 22 Oct 2014 02:52:00 +0000 (02:52 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 22 Oct 2014 02:52:00 +0000 (02:52 +0000)
commit25c85cacbdb06113e0b6411a285201bd65f7b6a2
tree897238ad573f619024f8f62c24af577c434096de
parent4a63958cbdd83f71133ba4ffbddcac9b2ff41740
Disable the uninitialized field warning in uninstantiated classes.

If a templated class is not instantiated, then the AST for it could be missing
some things that would throw the field checker off.  Wait until specialization
before emitting these warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220363 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/uninitialized.cpp