Modified the Objective-C lexer and parser (only
authorSean Callanan <scallanan@apple.com>
Tue, 9 Dec 2014 23:47:56 +0000 (23:47 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 9 Dec 2014 23:47:56 +0000 (23:47 +0000)
commit8759649013a21b7727feba4ebaf630a774ff4241
tree1a11120712bd274abccadf3af87b690913be4242
parentd73f3c6b73becfc016165df3ba746e1866786140
Modified the Objective-C lexer and parser (only
in debugger mode) to accept @import declarations
and pass them to the debugger.

In the preprocessor, accept import declarations
if the debugger is enabled, but don't actually
load the module, just pass the import path on to
the preprocessor callbacks.

In the Objective-C parser, if it sees an import
declaration in statement context (usual for LLDB),
ignore it and return a NullStmt.

llvm-svn: 223855
clang/lib/Lex/Preprocessor.cpp
clang/lib/Parse/ParseObjc.cpp