[clangd] Skip extra round-trip in parsing args in debug builds. NFC
authorSam McCall <sam.mccall@gmail.com>
Sat, 7 May 2022 15:31:52 +0000 (17:31 +0200)
committerSam McCall <sam.mccall@gmail.com>
Mon, 9 May 2022 12:45:35 +0000 (14:45 +0200)
commitbb53eb1ef4369fa7ae13d693eb219665c2cecd24
treeaa1df9ba26881d7e54504925ed76f83d14f6b10b
parentbf9921adb9304b90f21f087c1ea2ef178d9c57dd
[clangd] Skip extra round-trip in parsing args in debug builds. NFC

This is a clever cross-cutting sanity test for clang's arg parsing I suppose.
But clangd creates thousands of invocations, ~all with identical trivial
arguments, and problems with these would be caught by clang's tests.
This overhead accounts for 10% of total unittest time!

Differential Revision: https://reviews.llvm.org/D125169
clang-tools-extra/clangd/Compiler.cpp