[PATCH] D56723: [CodeComplete] Propagate preferred types through parser in more cases
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 15 07:48:53 PST 2019
ilya-biryukov created this revision.
ilya-biryukov added reviewers: kadircet, rsmith.
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.
Repository:
rC Clang
https://reviews.llvm.org/D56723
Files:
include/clang/Parse/Parser.h
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseInit.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/ParseTemplate.cpp
lib/Sema/SemaCodeComplete.cpp
unittests/Sema/CodeCompleteTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56723.181786.patch
Type: text/x-patch
Size: 33034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190115/4171af7a/attachment-0001.bin>
More information about the cfe-commits
mailing list