[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL373710: [CodeComplete] Ensure object is the same in compareOverloads() (authored by ibiryukov, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commi

[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang/lib/Sema/SemaCodeComplete.cpp:1188 ExprValueKind ObjectKind) { + // This function does not take object type into account. + if (Candidate.getDeclContext() != Incumbent.getDeclContext

[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 223160. ilya-biryukov marked 3 inline comments as done. ilya-biryukov added a comment. - Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68335/new/ https://reviews.llvm.org/D68335 Files:

[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2565 + EXPECT_THAT(Completions, + ElementsAre(AllOf(ReturnType("int"), Named("size"; +} could you give the three methods different return types

[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. (oops, meant to accept with comments) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68335/new/ https://reviews.llvm.org/D68335

[PATCH] D68335: [CodeComplete] Ensure object is the same in compareOverloads()

2019-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman, jkorous. Herald added a project: clang. This fixes a regression that led to size() not being available in clangd when completing 'deque().^'. Repository: rG