clang-1/lib/Sema
Chris Lattner 4c97d762d8 Diagnose invalid uses of tagged types with a missing tag. For example, in:
struct xyz { int y; };
enum abc { ZZZ };

static xyz b;
abc c;

we used to produce:

t2.c:4:8: error: unknown type name 'xyz'
static xyz b;
       ^
t2.c:5:1: error: unknown type name 'abc'
abc c;
^

we now produce:

t2.c:4:8: error: use of tagged type 'xyz' without 'struct' tag
static xyz b;
       ^
       struct
t2.c:5:1: error: use of tagged type 'abc' without 'enum' tag
abc c;
^
enum

GCC produces the normal:
t2.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘b’
t2.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘c’

rdar://6783347


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68914 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-12 21:49:30 +00:00
..
CMakeLists.txt Update CMake 2009-03-27 05:18:33 +00:00
CXXFieldCollector.h Unifies the name-lookup mechanisms used in various parts of the AST 2008-12-11 16:49:14 +00:00
IdentifierResolver.cpp Introduce a new OpaquePtr<N> struct type, which is a simple POD wrapper for a 2009-03-28 19:18:32 +00:00
IdentifierResolver.h Rework the way we find locally-scoped external declarations when we 2009-03-02 00:19:53 +00:00
Makefile Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
ParseAST.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
Sema.cpp Give Type::getDesugaredType a "for-display" mode that can apply more 2009-04-01 15:47:24 +00:00
Sema.h Diagnose invalid uses of tagged types with a missing tag. For example, in: 2009-04-12 21:49:30 +00:00
SemaAccess.cpp Revert Sebastian's rvalue patch (r67870) since it caused test failures in 2009-03-28 04:17:27 +00:00
SemaAttr.cpp Deallocate 'DeclRefExpr's in correctly formed '#pragma unused' 2009-03-23 22:50:47 +00:00
SemaCXXScopeSpec.cpp More improvements to namespace aliases. We now support everything except aliases in using directives. 2009-03-28 23:53:49 +00:00
SemaChecking.cpp CodeGenModule::GetAddrOfConstantCFString(): 2009-04-01 21:16:31 +00:00
SemaDecl.cpp Diagnose invalid uses of tagged types with a missing tag. For example, in: 2009-04-12 21:49:30 +00:00
SemaDeclAttr.cpp Implement attribute "analyzer_noreturn" (<rdar://problem/6777003>). This allows 2009-04-10 00:01:14 +00:00
SemaDeclCXX.cpp Parse deleted member functions. Parsing member declarations goes through a different code path that I forgot previously. 2009-04-12 17:16:29 +00:00
SemaDeclObjC.cpp Fix rdar://6771034: don't warn on use of forward declared protocol in protocol 2009-04-12 08:43:13 +00:00
SemaExpr.cpp Fix rdar://6770142 - Class and qualified id's are compatible, just like 2009-04-12 09:02:39 +00:00
SemaExprCXX.cpp Parse deleted member functions. Parsing member declarations goes through a different code path that I forgot previously. 2009-04-12 17:16:29 +00:00
SemaExprObjC.cpp Fix rdar://6770142 - Class and qualified id's are compatible, just like 2009-04-12 09:02:39 +00:00
SemaInherit.cpp Propagate the ASTContext to various AST traversal and lookup functions. 2009-04-09 21:40:53 +00:00
SemaInherit.h Make parsing a semantic analysis a little more robust following Sema 2009-04-01 21:51:26 +00:00
SemaInit.cpp Propagate the ASTContext to various AST traversal and lookup functions. 2009-04-09 21:40:53 +00:00
SemaLookup.cpp Implementation of pre-compiled headers (PCH) based on lazy 2009-04-09 22:27:44 +00:00
SemaNamedCast.cpp Fix a few isObjectTypes that really need to be isIncompleteOrObject 2009-03-24 20:13:58 +00:00
SemaOverload.cpp Parse deleted member functions. Parsing member declarations goes through a different code path that I forgot previously. 2009-04-12 17:16:29 +00:00
SemaOverload.h Reintroduce r67870 (rval ref overloading), since I can't reproduce any test failures on i386 or x86_64. If this fails for someone, please contact me. 2009-03-29 15:27:50 +00:00
SemaStmt.cpp add a new isNull() method to DeclGroupRef. 2009-04-12 20:13:14 +00:00
SemaTemplate.cpp Propagate the ASTContext to various AST traversal and lookup functions. 2009-04-09 21:40:53 +00:00
SemaTemplateInstantiate.cpp Propagate the ASTContext to various AST traversal and lookup functions. 2009-04-09 21:40:53 +00:00
SemaTemplateInstantiateDecl.cpp Propagate the ASTContext to various AST traversal and lookup functions. 2009-04-09 21:40:53 +00:00
SemaTemplateInstantiateExpr.cpp Revamp our representation of C++ nested-name-specifiers. We now have a 2009-03-26 23:50:42 +00:00
SemaType.cpp Introduce a new OpaquePtr<N> struct type, which is a simple POD wrapper for a 2009-03-28 19:18:32 +00:00