mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
clang-tidy: apply performance-faster-string-find fixes
This commit is contained in:

committed by
Brad King

parent
7c9db8f813
commit
cac529dd49
@@ -173,7 +173,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args,
|
||||
!cmGlobalGenerator::IsReservedTarget(libName);
|
||||
|
||||
if (nameOk && !importTarget && !isAlias) {
|
||||
nameOk = libName.find(":") == std::string::npos;
|
||||
nameOk = libName.find(':') == std::string::npos;
|
||||
}
|
||||
if (!nameOk) {
|
||||
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
|
||||
|
Reference in New Issue
Block a user