]> granicus.if.org Git - clang/commit
Centralize error reporting of improper uses of incomplete types in the
authorDouglas Gregor <dgregor@apple.com>
Mon, 19 Jan 2009 19:26:10 +0000 (19:26 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 19 Jan 2009 19:26:10 +0000 (19:26 +0000)
commit4ec339f43c0cae2678334850c90926bea10999c7
tree618cd12f3da4ef770bbd1d79573b85cb4c7eda1b
parentfec7c2a9d0d46f4e681d1fe0089ae590962f05f6
Centralize error reporting of improper uses of incomplete types in the
new DiagnoseIncompleteType. It provides additional information about
struct/class/union/enum types when possible, either by pointing to the
forward declaration of that type or by pointing to the definition (if
we're in the process of defining that type).
Fixes <rdar://problem/6500531>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62521 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/clang/Basic/DiagnosticKinds.def
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaNamedCast.cpp
lib/Sema/SemaType.cpp
test/Parser/recovery.c
test/Sema/array-constraint.c
test/Sema/compound-literal.c
test/Sema/enum.c
test/Sema/incomplete-decl.c
test/Sema/init.c
test/Sema/pointer-addition.c
test/SemaCXX/dynamic-cast.cpp
test/SemaCXX/new-delete.cpp
test/SemaCXX/qualified-id-lookup.cpp
test/SemaCXX/try-catch.cpp
test/SemaObjC/ivar-sem-check-1.m