hanchenye-llvm-project/clang/test
Chris Lattner 9af40c1e14 fix PR4049, a crash on invalid, by making sema install the right number of
parameters in a functiondecl, even if the decl is invalid and has a confusing
Declarator.  On the testcase, we now emit one beautiful diagnostic:

t.c:2:1: error: unknown type name 'unknown_type'
unknown_type f(void*)
^

GCC 4.0 produces:

t.c:2: error: syntax error before ‘f’
t.c: In function ‘f’:
t.c:2: error: parameter name omitted

and GCC 4.2:

t.c:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘f’

llvm-svn: 70016
2009-04-25 06:12:16 +00:00
..
Analysis Hook up attribute 'objc_ownership_retain' to the analyzer. This attribute allows 2009-04-25 01:21:50 +00:00
CodeGen Fix handling of C99 "extern inline" semantics when dealing with 2009-04-23 18:22:55 +00:00
CodeGenCXX Use the new guard variable mangling function and get rid of the old code. 2009-04-13 18:03:33 +00:00
CodeGenObjC Fix pointer addressing and array subscripting of Objective-C interface 2009-04-25 05:08:32 +00:00
Coverage remove obsolete tests. 2009-04-22 22:06:26 +00:00
Driver Don't run dsymutil when making a fat executable direct source. 2009-04-24 03:03:52 +00:00
FixIt Fixed the Fix-It hints for comparison against a string literal. Thanks, Chris! 2009-04-06 18:45:53 +00:00
Frontend Fixed the test. 2009-04-10 22:09:52 +00:00
Lexer implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310 2009-04-13 01:29:17 +00:00
Misc Fix rdar://6814950 - stdint.h isn't "-pedantic -std=c89" clean, 2009-04-22 03:42:19 +00:00
PCH PCH support for the global method pool (= instance and factory method 2009-04-24 21:10:55 +00:00
Parser implement semantic analysis for @synchronized, fixing a crash on invalid 2009-04-21 06:11:25 +00:00
Preprocessor fix rdar://6816766 - Crash with function-like macro test at end of directive. 2009-04-24 07:15:46 +00:00
Rewriter Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
Sema fix PR4049, a crash on invalid, by making sema install the right number of 2009-04-25 06:12:16 +00:00
SemaCXX Conditional operator C++ checking complete. What issues remain are in more general code. 2009-04-19 21:53:20 +00:00
SemaObjC reject explicit pointer arithmetic on interface pointers in 64-bit objc ABI 2009-04-24 23:50:08 +00:00
SemaObjCXX Pull clang-cc code for generating PTH files based on the input type. 2009-04-01 05:09:09 +00:00
SemaTemplate Make the implicit-int handling error recovery stuff handle C++ 2009-04-14 22:17:06 +00:00
Makefile Update to account for the great driver renaming. 2009-03-25 17:56:16 +00:00
TestRunner.sh Implementation of pre-compiled headers (PCH) based on lazy 2009-04-09 22:27:44 +00:00