[PATCH] D55061: [clangd] Penalize destructor and overloaded operators in code completion.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 02:00:50 PST 2018
hokein accepted this revision.
hokein added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clangd/Quality.h:74
Keyword,
+ Operator,
} Category = Unknown;
----------------
Maybe name it `OverloadedOperator` to avoid confusion with other non-overloaded operators like `?:`
================
Comment at: unittests/clangd/QualityTests.cpp:428
+
+TEST(QualityTests, OperatorQuality) {
+ auto Header = TestTU::withHeaderCode(R"cpp(
----------------
The test name `*Quality` is a bit confusing. At the first glance, I'd expect to see some tests about ranking, but it just verifies that the new symbol category is added, maybe name it something like `OperatorSymbolCategory`.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55061/new/
https://reviews.llvm.org/D55061
More information about the cfe-commits
mailing list