Extract prefix filters to CodeComplete so it can be easily tested.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang-tools-extra/clangd/CodeComplete.cpp | ||
|---|---|---|
| 1922 | Did you mean include_next? Also, this will never trigger, because you already consumed import before, so you'd need "#importimport_next" ;-) Reverse the order. You should also return false if the whole || thing is not true. | |
| clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp | ||
| 2846 | Add test for "#<^" here, since it should be false, but I think it will be true right now. | |
*finally* getting back to this...
| clang-tools-extra/clangd/CodeComplete.cpp | ||
|---|---|---|
| 1922 | I have to get points for the number of bugs on one line, right? (The import vs import_next overlap I have a reasonable excuse - these had trailing spaces until I learned that #include<foo.h> is legal!) Added more tests. | |
Did you mean include_next?
Also, this will never trigger, because you already consumed import before, so you'd need "#importimport_next" ;-) Reverse the order.
You should also return false if the whole || thing is not true.