[CodeCompletion] Code complete the '__auto_type' keyword

rdar://29219185

llvm-svn: 295003
This commit is contained in:
Alex Lorenz 2017-02-13 23:35:59 +00:00
parent 53fc965b48
commit 46eed9d625
2 changed files with 8 additions and 2 deletions

View File

@ -1334,8 +1334,9 @@ static void AddTypeSpecifierResults(const LangOptions &LangOpts,
Builder.AddChunk(CodeCompletionString::CK_RightParen);
Results.AddResult(Result(Builder.TakeString()));
}
}
} else
Results.AddResult(Result("__auto_type", CCP_Type));
// GNU extensions
if (LangOpts.GNUMode) {
// FIXME: Enable when we actually support decimal floating point.

View File

@ -0,0 +1,5 @@
// RUN: %clang_cc1 -code-completion-at=%s:3:1 %s | FileCheck %s
void func() {
}
// CHECK: COMPLETION: __auto_type