mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
clang-tidy: Use cleaner path to export-fixes file with Ninja
The clang-tidy "export-fixes" flag was using unconverted Ninja paths due
to a flipped boolean check from commit 993dde925f (TargetGenerator:
Factor out generation of code check rules, 2023-05-12,
v3.27.0-rc1~84^2~2).
This commit is contained in:
committed by
Brad King
parent
2f8ae28ef6
commit
baa74ed677
@@ -463,7 +463,7 @@ std::string cmCommonTargetGenerator::GenerateCodeCheckRules(
|
||||
this->GlobalCommonGenerator->AddClangTidyExportFixesFile(fixesFile);
|
||||
cmSystemTools::MakeDirectory(
|
||||
cmSystemTools::GetFilenamePath(fixesFile));
|
||||
if (!pathConverter) {
|
||||
if (pathConverter) {
|
||||
fixesFile = pathConverter(fixesFile);
|
||||
}
|
||||
exportFixes = cmStrCat(";--export-fixes=", fixesFile);
|
||||
|
||||
Reference in New Issue
Block a user