[PATCH] D28286: [CodeCompletion] Code complete the missing C++11 keywords

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 03:55:16 PST 2017


arphaman created this revision.
arphaman added reviewers: manmanren, akyrtzi.
arphaman added a subscriber: cfe-commits.
arphaman set the repository for this revision to rL LLVM.

This patch adds context sensitive code completion support for the C++11 keywords that currently don't have completion results.

The following keywords are supported by this patch:

- alignas
- constexpr
- static_assert
- noexcept (as a function/method qualifier, not the expression which was already supported)
- thread_local

The following special identifiers are also supported:

- final (as a method qualifier or class qualifier)
- override


Repository:
  rL LLVM

https://reviews.llvm.org/D28286

Files:
  include/clang/Parse/Parser.h
  include/clang/Sema/Sema.h
  lib/Parse/ParseDecl.cpp
  lib/Parse/ParseDeclCXX.cpp
  lib/Sema/SemaCodeComplete.cpp
  test/CodeCompletion/keywords.cpp
  test/CodeCompletion/ordinary-name-cxx11.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28286.83030.patch
Type: text/x-patch
Size: 16630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170104/6f856d9b/attachment-0001.bin>


More information about the cfe-commits mailing list