mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
clang-tidy: apply performance-faster-string-find fixes
This commit is contained in:
committed by
Brad King
parent
7c9db8f813
commit
cac529dd49
@@ -154,7 +154,7 @@ bool cmAddCustomTargetCommand::InitialPass(
|
||||
bool nameOk = cmGeneratorExpression::IsValidTargetName(targetName) &&
|
||||
!cmGlobalGenerator::IsReservedTarget(targetName);
|
||||
if (nameOk) {
|
||||
nameOk = targetName.find(":") == std::string::npos;
|
||||
nameOk = targetName.find(':') == std::string::npos;
|
||||
}
|
||||
if (!nameOk) {
|
||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||
|
||||
Reference in New Issue
Block a user