better to actually produce a decent set of completions by checking the
system include paths, but not today. Fixes PR8744.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121431
91177308-0d34-0410-b5e6-
96231b3b80d8
while (CurTok.isNot(tok::eom)) {
End = CurTok.getLocation();
+ // FIXME: Provide code completion for #includes.
+ if (CurTok.is(tok::code_completion)) {
+ Lex(CurTok);
+ continue;
+ }
+
// Append the spelling of this token to the buffer. If there was a space
// before it, add it now.
if (CurTok.hasLeadingSpace())
// CHECK-CC1: foo
// CHECK-CC1: TYPEDEF
// CHECK-CC1: y
+
+ // PR8744
+ // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:1:11 %s