[cfe-commits] r59853 - /cfe/trunk/lib/Parse/ParseTentative.cpp
Chris Lattner
sabre at nondot.org
Fri Nov 21 17:15:33 PST 2008
Author: lattner
Date: Fri Nov 21 19:15:33 2008
New Revision: 59853
URL: http://llvm.org/viewvc/llvm-project?rev=59853&view=rev
Log:
Teach tentative parsing to handle block pointers (rdar://6394309)
Modified:
cfe/trunk/lib/Parse/ParseTentative.cpp
Modified: cfe/trunk/lib/Parse/ParseTentative.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseTentative.cpp?rev=59853&r1=59852&r2=59853&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseTentative.cpp (original)
+++ cfe/trunk/lib/Parse/ParseTentative.cpp Fri Nov 21 19:15:33 2008
@@ -399,7 +399,8 @@
// ptr-operator declarator
while (1) {
- if (Tok.is(tok::star) || Tok.is(tok::amp)) {
+ if (Tok.is(tok::star) || Tok.is(tok::amp) ||
+ (Tok.is(tok::caret) && getLang().Blocks)) {
// ptr-operator
ConsumeToken();
while (Tok.is(tok::kw_const) ||
More information about the cfe-commits
mailing list