Avoid adding qualifiers before C++ operators declared in a non-class context
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Did a quick test on my machine, seems to work! Can you add a regression test to clang-tools-extra/clangd/unittests/tweaks/RemoveUsingNamespaceTests.cpp though?
@tom-anders Thank you for reviewing!
I tried adding a test but I don't know how to run the tests.
And I just found that operators declared in a class context are already handled in the existing version, but user-defined literals are not, so I rewrote the comments.
I guess that's ninja check-clangd?
clang-tools-extra/clangd/unittests/tweaks/RemoveUsingNamespaceTests.cpp | ||
---|---|---|
259 | is this a typo? |
Sorry, I found tips about running tests in the document. Feel like a fool :)
Please check this test is correct and suitable. Thanks!
clang-tools-extra/clangd/unittests/tweaks/RemoveUsingNamespaceTests.cpp | ||
---|---|---|
259 | I guess not. I refer to the tests above and I think this represents the cursor. But I'm not sure though. |
clang-tools-extra/clangd/unittests/tweaks/RemoveUsingNamespaceTests.cpp | ||
---|---|---|
259 |
OK, thanks for the clarification! |
is this a typo?