llvm-project/clang/lib
Chris Lattner fd48afe412 Implement PR6423 by using one token of lookahead to disambiguate
an *almost* always incorrect case.  This only does the lookahead
in the insanely unlikely case, so it shouldn't impact performance.

On this testcase:

struct foo {
}
typedef int x;

Before:

t.c:3:9: error: cannot combine with previous 'struct' declaration specifier
typedef int x;
        ^

After:

t.c:2:2: error: expected ';' after struct
}
 ^
 ;

llvm-svn: 97403
2010-02-28 18:18:36 +00:00
..
AST Support constant-evaluation of __builtin_nans* as well as the correct constant 2010-02-28 13:00:19 +00:00
Analysis For printf format string checking, add support for positional format strings. 2010-02-27 01:41:03 +00:00
Basic Robustify SourceManager::getLocation(), so that it returns an 2010-02-27 02:42:25 +00:00
Checker Use getBody() to get the function definition when the decl referenced is not 2010-02-28 06:39:11 +00:00
CodeGen When laying out vtables for virtual bases in construction vtables, we need to check if the vtable is a primary base in the layout class. 2010-02-28 18:08:38 +00:00
Driver Driver: Allow driver title (for --help) to be overridden by clients. 2010-02-25 03:31:53 +00:00
Frontend Opt into the Verifier now that it's an opt-in feature of 2010-02-28 00:55:40 +00:00
Headers add two aliases for SSE functions we already have, fixing PR6316. 2010-02-16 18:21:25 +00:00
Index -fno-rtti is now the default. 2010-01-24 20:43:31 +00:00
Lex Move method out-of-line. I thought this would be a candidate for inlining but I was wrong. 2010-02-27 17:05:45 +00:00
Parse Implement PR6423 by using one token of lookahead to disambiguate 2010-02-28 18:18:36 +00:00
Rewrite Some clean up of replacement text API no longer needed by 2010-02-05 16:43:40 +00:00
Runtime clang/Darwin: Update for rename of 10.4 static runtime library. 2010-01-20 02:35:02 +00:00
Sema Add an overload of Preprocessor::getSpelling which takes a SmallVector and 2010-02-27 13:44:12 +00:00
CMakeLists.txt Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00
Makefile Split libAnalysis into two libraries: libAnalysis and libChecker. 2010-01-25 04:41:41 +00:00