- Address a FIXME by warning the user that both -run-synchronously and -j X are passed.
- Fix a comment to suppress clang-tidy warning by passing the correct argument name.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Thanks for the cleanup Kirill :)
clangd/tool/ClangdMain.cpp | ||
---|---|---|
153 ↗ | (On Diff #135597) | -j is non-zero by default, and we shouldn't show warning if users only specify -run-synchronously. We should only warn if user explicitly set worker count while also providing -run-synchronously. |
Addressed review comment by checking whether -j option was actually passed to clangd.
clangd/tool/ClangdMain.cpp | ||
---|---|---|
153 ↗ | (On Diff #135597) | Oh, you're correct, I should've been more careful. This should be fine now. |
Oops, just realized I forgot to push the "send" button!
clangd/tool/ClangdMain.cpp | ||
---|---|---|
153 ↗ | (On Diff #135626) | nit: no need for braces around one liners. To make this an real one line, maybe "Ignoring -j because -run-synchronously is set.\n"? |
Address Eric's nit: make warning message shorter so that it would fit into one line in order to omit braces for a single statement for compliance with the clang-tools-extra codestyle, as discussed with Alex a long while ago.