Also fix a small bug -- the extra argument "-xc++" doesn't overwrite the
language if the argument is present after the file name in the compiler
command.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 33872 Build 33871: arc lint + arc unit
Event Timeline
Address review comments.
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
137 | for the cases here, we want the main file treat as a header file, using -xc++ here would make clang treat it as a .cc file. |
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
137 | It sounds like this is unrelated to the current change, and is designed to address tests that were passing by mistake (rename was failing because the file was not a header, not for the desired reason. Can we split up the fix into another patch, and verify it by asserting on the error message? |
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
137 | Done in this patch, adding the error message when doing the verification. |
can't rename symbols of this kind?
"supported" lacks context I think.