No new tests as the existing tests for result priority should give us
coverage. Also as the new flag is trivial enough, I'm reluctant to plumb the
flag to c-index-test output.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
LG, but could we add a test for the new flag it by printing it in PrintingCodeCompleteConsumer::ProcessCodeCompleteResults() and adding corresponding tests to clang/test/CodeCompletion?
Similar to how it's done for the Hidden flag in the results
LGTM with a NIT
lib/Sema/CodeCompleteConsumer.cpp | ||
---|---|---|
557 ↗ | (On Diff #170838) | NIT: Maybe add a space between the items, i.e. join with ", " as a separator? |
And another NIT :-)
lib/Sema/CodeCompleteConsumer.cpp | ||
---|---|---|
548 ↗ | (On Diff #170838) | NIT: maybe move Tags into the corresponding case handler? Would require putting a set of braces around it, but that shouldn't make the code less readable. |
- Rebase
lib/Sema/CodeCompleteConsumer.cpp | ||
---|---|---|
557 ↗ | (On Diff #170838) | Considering we put everything in one line, I think it's reasonable to drop the spaces to keep the output compact. These tags are more expected to be read by tests than human after all. |
lib/Sema/CodeCompleteConsumer.cpp | ||
---|---|---|
557 ↗ | (On Diff #170838) | I would argue this output is also read by humans, therefore we should add a space. |