forked from OSchip/llvm-project
[CodeCompletion] Code complete the '__auto_type' keyword
rdar://29219185 llvm-svn: 295003
This commit is contained in:
parent
53fc965b48
commit
46eed9d625
|
@ -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.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// RUN: %clang_cc1 -code-completion-at=%s:3:1 %s | FileCheck %s
|
||||
void func() {
|
||||
|
||||
}
|
||||
// CHECK: COMPLETION: __auto_type
|
Loading…
Reference in New Issue