]> granicus.if.org Git - clang/commit
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)
commitfd797b80cd3644e39269097e46e11bb5bb91e80d
tree040d8f88c231f75c0a5343bc6ea596b312fba290
parent46323d1e823ee9d8d3d2e6ce851d97b98d563599
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223855 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Preprocessor.cpp
lib/Parse/ParseObjc.cpp