clang-1/test
Chris Lattner 9a65b81105 Improve error recovery in C/ObjC when the first argument of a function
declarator is incorrect.  Not being a typename causes the parser to 
dive down into the K&R identifier list handling stuff, which is almost
never the right thing to do.

Before:

r.c:3:17: error: expected ')'
void bar(intptr y);
                ^
r.c:3:9: note: to match this '('
void bar(intptr y);
        ^
r.c:3:10: error: a parameter list without types is only allowed in a function definition
void bar(intptr y);
         ^

After:

r.c:3:10: error: unknown type name 'intptr'; did you mean 'intptr_t'?
void bar(intptr y);
         ^~~~~~
         intptr_t
r.c:1:13: note: 'intptr_t' declared here
typedef int intptr_t;
            ^

This fixes rdar://7980651 - poor recovery for bad type in the first arg of a C function



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103783 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-14 17:44:56 +00:00
..
ASTMerge Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
Analysis Don't add a null successor to a CFGBlock when the contents of an @synchronized statement is empty. 2010-05-13 16:38:08 +00:00
CXX When we emit an error during the implicit definition of a special 2010-05-12 16:39:35 +00:00
CodeCompletion When code completion produces an overload set as its results (e.g., 2010-04-06 20:19:47 +00:00
CodeGen The FP constant evaluator was missing a few cases of unary operators that return floats 2010-05-07 22:08:54 +00:00
CodeGenCXX Make sure that value-initialized pointers to data members are initialized correctly. 2010-05-14 15:05:19 +00:00
CodeGenObjC Fix test. 2010-05-11 18:48:13 +00:00
CodeGenObjCXX Objective-C++ Code gen. Handle code gen. for property 2010-05-10 22:57:35 +00:00
Coverage "this patch properly addresses escaping < and > which might appear 2010-05-12 23:27:11 +00:00
Driver Force -no-integrated-as in this test. 2010-05-14 02:02:13 +00:00
FixIt Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
Frontend
Headers Make sure we don't include mm_malloc.h in this test, it includes errno.h which 2010-03-26 20:17:23 +00:00
Index Specially handle CaseStmts in CursorVisitor because they can be nested and walking them 2010-05-13 00:25:00 +00:00
Lexer push some source location information down through the compiler, 2010-04-20 20:35:58 +00:00
Misc Testcase for r103712. 2010-05-13 12:04:17 +00:00
PCH pch'ify CXXNewExpr and CXXZeroInitValueExpr 2010-05-10 01:22:27 +00:00
Parser Improve error recovery in C/ObjC when the first argument of a function 2010-05-14 17:44:56 +00:00
Preprocessor Fix pasto in this test 2010-04-30 03:07:23 +00:00
Rewriter make the rewriter add a #ifndef around the #define of __attribute__. 2010-04-13 17:33:56 +00:00
Sema Correct spelling of expected error message. Apparently I forgot to re-run 2010-05-12 01:15:36 +00:00
SemaCXX Make sure to search semantic scopes and appropriate template-parameter 2010-05-14 04:53:42 +00:00
SemaObjC Diagnose unused exception parameters under a different warning group 2010-05-03 18:51:14 +00:00
SemaObjCXX Objective-C++ Sema. Fix a bug in instantiation of receivers. 2010-05-13 17:19:25 +00:00
SemaTemplate Make sure to search semantic scopes and appropriate template-parameter 2010-05-14 04:53:42 +00:00
CMakeLists.txt Add test cases for r98003 and r98006. 2010-03-08 23:38:27 +00:00
Makefile don't force 16 threads. 2010-05-12 02:47:23 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg tests: Mangle '-vg' onto the end of the triple when running under valgrind, so 2010-03-20 21:13:08 +00:00
lit.site.cfg.in
make_test_dirs.pl