summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-28 18:18:36 +0000
committerChris Lattner <sabre@nondot.org>2010-02-28 18:18:36 +0000
commitfd48afe412e6a07e248f528d2650abe7c25b714a (patch)
tree7149480061cf42740a58d5080f3355199e50f8af /clang/lib/Sema/SemaDeclCXX.cpp
parent8b37bb7c48a6033f027231c029ec96766d0f193a (diff)
downloadbcm5719-llvm-fd48afe412e6a07e248f528d2650abe7c25b714a.tar.gz
bcm5719-llvm-fd48afe412e6a07e248f528d2650abe7c25b714a.zip
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
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud