summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/enum.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't a.k.a. through the primary typedef of an anonymous tag decl.John McCall2010-01-131-0/+8
| | | | llvm-svn: 93362
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Ok, ok, I give in. Fix tests for unused result warning.Daniel Dunbar2009-08-011-1/+1
| | | | llvm-svn: 77780
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Add type checking for tentative definitions at the end of theDouglas Gregor2009-03-101-1/+3
| | | | | | | | | translation unit. Thread the various declarations of variables via VarDecl::getPreviousDeclaration. llvm-svn: 66601
* Partial fix for PR3310, concerning type-checking for tentativeDouglas Gregor2009-03-101-4/+2
| | | | | | | | | | | definitions. We were rejecting tentative definitions of incomplete (which is bad), and now we don't. This fix is partial because we don't do the end-of-translation-unit initialization for tentative definitions that don't ever have any initializers specified. llvm-svn: 66584
* Implement the GNU semantics for forward declarations of enum types inDouglas Gregor2009-03-061-0/+11
| | | | | | C and C++. Fixes PR3688. llvm-svn: 66282
* Centralize error reporting of improper uses of incomplete types in theDouglas Gregor2009-01-191-2/+9
| | | | | | | | | | 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>. llvm-svn: 62521
* Warn about typedefs of enums without any declarator name. Fixes ↵Douglas Gregor2009-01-171-0/+3
| | | | | | rdar://problem/6503878 llvm-svn: 62397
* Teach DeclContext how to find the primary declaration for any TagDeclDouglas Gregor2009-01-171-1/+0
| | | | | | | | | | | | | even when we are still defining the TagDecl. This is required so that qualified name lookup of a class name within its definition works (see the new bits in test/SemaCXX/qualified-id-lookup.cpp). As part of this, move the nested redefinition checking code into ActOnTag. This gives us diagnostics earlier (when we try to perform the nested redefinition, rather than when we try to complete the 2nd definition) and removes some code duplication. llvm-svn: 62386
* Create new EnumDecl nodes for redeclarations of enums, linking themDouglas Gregor2008-12-151-0/+6
| | | | | | | | | | together in the same way that we link RecordDecl/CXXRecordDecl nodes. Unify ActOnTag and ActOnTagStruct. Fixes PR clang/2753. llvm-svn: 61034
* Workaround for PR3173. The fix is correct in the sense that if the enum Eli Friedman2008-12-081-0/+3
| | | | | | | | | code were working correctly, it would be a no-op, but it's not really a proper fix. That said, I don't really want to touch the enum code at the moment because I don't understand it very well, and this seems to be a relatively visible regression. llvm-svn: 60680
* Make all the 'redefinition' diagnostics more consistent, and make the Chris Lattner2008-11-231-3/+3
| | | | | | "previously defined here" diagnostics all notes. llvm-svn: 59920
* Add test for nested enum redefinition.Daniel Dunbar2008-08-071-0/+4
| | | | | | - <rdar://problem/6093889> llvm-svn: 54470
* testcase for PR2416, which we already handle correctly.Chris Lattner2008-07-261-0/+3
| | | | llvm-svn: 54096
* fix diagnostics.Chris Lattner2008-07-251-2/+2
| | | | llvm-svn: 54079
* Fix rdar://6095136, various crashes with incomplete enum types.Chris Lattner2008-07-251-0/+15
| | | | llvm-svn: 54074
* Fix PR2020 by recovering by defining an anonymous enum, instead of recoveringChris Lattner2008-07-031-0/+5
| | | | | | by filling in the body of a union with enum constants. llvm-svn: 53069
* Sema::FinalizeDeclaratorGroup()...make sure we emit an diagnostic for ↵Steve Naroff2008-01-181-2/+2
| | | | | | tentative definitions with incomplete types. Touch up all test cases that are effected. llvm-svn: 46152
* Type::isArithmeticType(): disallow incomplete enum decls.Steve Naroff2008-01-161-0/+6
| | | | | | Bug submitted by Eli. llvm-svn: 46102
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Removed option "-parse-ast-check" from clang driver. This is now implementedTed Kremenek2007-09-261-1/+1
| | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
* compute the required destination type for an enum, emitting various warnings.Chris Lattner2007-08-281-0/+24
TODO: update the types of the constants and the enum. llvm-svn: 41532
OpenPOWER on IntegriCloud