mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-04 13:48:35 -06:00
cmGlobalNinjaGenerator: Suppress clang-tidy warning
This commit is contained in:
@@ -130,7 +130,7 @@ std::string cmGlobalNinjaGenerator::EncodeLiteral(const std::string& lit)
|
||||
|
||||
std::string cmGlobalNinjaGenerator::EncodePath(const std::string& path)
|
||||
{
|
||||
std::string result = path;
|
||||
std::string result = path; // NOLINT(clang-tidy)
|
||||
#ifdef _WIN32
|
||||
if (this->IsGCCOnWindows())
|
||||
std::replace(result.begin(), result.end(), '\\', '/');
|
||||
@@ -283,7 +283,7 @@ void cmGlobalNinjaGenerator::WriteCustomCommandBuild(
|
||||
bool restat, const cmNinjaDeps& outputs, const cmNinjaDeps& deps,
|
||||
const cmNinjaDeps& orderOnly)
|
||||
{
|
||||
std::string cmd = command;
|
||||
std::string cmd = command; // NOLINT(clang-tidy)
|
||||
#ifdef _WIN32
|
||||
if (cmd.empty())
|
||||
// TODO Shouldn't an empty command be handled by ninja?
|
||||
|
||||
Reference in New Issue
Block a user