mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmGlobalNinjaGenerator: Suppress clang-tidy warning
This commit is contained in:
1 parent
5ae3966d75
commit
1e994985d8
1 file changed
+2
-2
@@ -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