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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Address review comments.
clang-tools-extra/clangd/unittests/RenameTests.cpp | ||
---|---|---|
137 ↗ | (On Diff #206402) | 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 ↗ | (On Diff #206402) | 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 ↗ | (On Diff #206402) | Done in this patch, adding the error message when doing the verification. |