]> granicus.if.org Git - clang/commit
Optionally add code completion results for arrow instead of dot
authorIvan Donchevskii <ivan.donchevskii@qt.io>
Fri, 25 May 2018 12:56:26 +0000 (12:56 +0000)
committerIvan Donchevskii <ivan.donchevskii@qt.io>
Fri, 25 May 2018 12:56:26 +0000 (12:56 +0000)
commitea1c0a4ef3f3f320ab29b3b40b8a821c52a7a438
treed292d35feddc47ab033e8239304fde8a7fc187d2
parent296b914eef4627d6dd69fe6b7f3cc743b89ec3f7
Optionally add code completion results for arrow instead of dot

Currently getting such completions requires source correction, reparsing
and calling completion again. And if it shows no results and rollback is
required then it costs one more reparse.

With this change it's possible to get all results which can be later
filtered to split changes which require correction.

Differential Revision: https://reviews.llvm.org/D41537

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333272 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Sema/CodeCompleteOptions.h
include/clang/Sema/Sema.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Parse/ParseExpr.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/member-access.cpp