mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 03:59:58 +00:00
Merge topic 'clang-tidy-driver-mode'
3aea865801
clang-tidy: Fix explicit --driver-mode= argument
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4307
This commit is contained in:
commit
ea5c6c3c86
@ -788,7 +788,7 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(
|
||||
driverMode = lang == "C" ? "gcc" : "g++";
|
||||
}
|
||||
run_iwyu += this->LocalGenerator->EscapeForShell(
|
||||
cmStrCat(tidy, ";--driver-mode=", driverMode));
|
||||
cmStrCat(tidy, ";--extra-arg-before=--driver-mode=", driverMode));
|
||||
}
|
||||
if (cpplint && *cpplint) {
|
||||
run_iwyu += " --cpplint=";
|
||||
|
@ -767,7 +767,7 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang,
|
||||
driverMode = lang == "C" ? "gcc" : "g++";
|
||||
}
|
||||
run_iwyu += this->GetLocalGenerator()->EscapeForShell(
|
||||
cmStrCat(tidy, ";--driver-mode=", driverMode));
|
||||
cmStrCat(tidy, ";--extra-arg-before=--driver-mode=", driverMode));
|
||||
}
|
||||
if (cpplint && *cpplint) {
|
||||
run_iwyu += " --cpplint=";
|
||||
|
Loading…
Reference in New Issue
Block a user