implement simple support for arbitrary token lookahead. Change the
objc @try parser to use it, fixing a FIXME. Update the
objc-try-catch-1.m file to pass now that we get more reasonable
errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48129 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Lex/MacroArgs.cpp b/Lex/MacroArgs.cpp
index bebf5cd..a26e50e 100644
--- a/Lex/MacroArgs.cpp
+++ b/Lex/MacroArgs.cpp
@@ -112,7 +112,8 @@
// this, we set up a fake TokenLexer to lex from the unexpanded argument
// list. With this installed, we lex expanded tokens until we hit the EOF
// token at the end of the unexp list.
- PP.EnterTokenStream(AT, NumToks);
+ PP.EnterTokenStream(AT, NumToks, false /*disable expand*/,
+ false /*owns tokens*/);
// Lex all of the macro-expanded tokens into Result.
do {