diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2017-02-13 23:35:59 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2017-02-13 23:35:59 +0000 |
| commit | 46eed9d625e65fc55baf3030c5edc1a0407de215 (patch) | |
| tree | cd4ec51137e27561d47b8e94b24c5bc5bc88addd /clang/lib/Sema | |
| parent | 53fc965b480c0682d6812a64109cd3925aa2867f (diff) | |
| download | bcm5719-llvm-46eed9d625e65fc55baf3030c5edc1a0407de215.tar.gz bcm5719-llvm-46eed9d625e65fc55baf3030c5edc1a0407de215.zip | |
[CodeCompletion] Code complete the '__auto_type' keyword
rdar://29219185
llvm-svn: 295003
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 0056b1138d8..9b71a3f0876 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -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. |

