summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/objc-foreach-syntax.m
Commit message (Collapse)AuthorAgeFilesLines
* Added a new attribute, objc_root_class, which informs the compiler when a ↵Patrick Beard2012-04-061-1/+1
| | | | | | | | | root class is intentionally declared. The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698> llvm-svn: 154187
* Fix scoping of method declarations and issue Fariborz Jahanian2011-02-091-2/+1
| | | | | | | warning when same parameter name used multiple times. // rdar://8877730 llvm-svn: 125229
* 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
* Make tests use the new clang cc1 flag.Fariborz Jahanian2009-12-141-1/+1
| | | | llvm-svn: 91300
* Implement the first set of changes for PR3963 and rdar://6759604,Chris Lattner2009-04-121-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which tries to do better error recovery when it is "obvious" that an identifier is a mis-typed typename. In this case, we try to parse it as a typename instead of as the identifier in a declarator, which gives us several options for better error recovery and immediately makes diagnostics more useful. For example, we now produce: t.c:4:8: error: unknown type name 'foo_t' static foo_t a = 4; ^ instead of: t.c:4:14: error: invalid token after top level declarator static foo_t a = 4; ^ Also, since we now parse "a" correctly, we make a decl for it, preventing later uses of 'a' from emitting things like: t.c:12:20: error: use of undeclared identifier 'a' int bar() { return a + b; } ^ I'd really appreciate any scrutiny possible on this, it is a tricky area. llvm-svn: 68911
* hoist some code for handling objc foreach construct out of Declaration ↵Chris Lattner2009-03-291-3/+24
| | | | | | | | processing into ParseForStatement. Merge two tests into one. llvm-svn: 68010
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Catch a foreach parse error.Fariborz Jahanian2009-01-171-0/+7
llvm-svn: 62382
OpenPOWER on IntegriCloud