]> granicus.if.org Git - clang/commit
[CodeComplete] Propagate preferred types through parser in more cases
authorIlya Biryukov <ibiryukov@google.com>
Thu, 31 Jan 2019 20:20:32 +0000 (20:20 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 31 Jan 2019 20:20:32 +0000 (20:20 +0000)
commitd60b3870985efd980894c42db7a6721c5ef04a07
treec0e66ab30277e1559691e2686320a983121a6d14
parenta87ff88c6466fbedd6281513b9480a2cad6c08c8
[CodeComplete] Propagate preferred types through parser in more cases

Preferred types are used by code completion for ranking. This commit
considerably increases the number of points in code where those types
are propagated.

In order to avoid complicating signatures of Parser's methods, a
preferred type is kept as a member variable in the parser and updated
during parsing.

Differential revision: https://reviews.llvm.org/D56723

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352788 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/SemaCodeComplete.cpp
unittests/Sema/CodeCompleteTest.cpp