diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-10-17 18:28:48 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-10-19 18:51:21 (GMT) |
commit | b4e8ddbc2fb2c8f40b40502cc4a79c79bcec5386 (patch) | |
tree | 2c2eb8c8525a7e58dd086cfe10fd25af8354f2d2 | |
parent | 43481a77f9eaffa4b15a24fa22e82201bf8cc210 (diff) | |
download | CMake-b4e8ddbc2fb2c8f40b40502cc4a79c79bcec5386.zip CMake-b4e8ddbc2fb2c8f40b40502cc4a79c79bcec5386.tar.gz CMake-b4e8ddbc2fb2c8f40b40502cc4a79c79bcec5386.tar.bz2 |
clang-tidy: enable cmStrLen() check and fix violations
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index a86f39a..1e9b78a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -33,6 +33,7 @@ readability-*,\ -readability-redundant-member-init,\ -readability-suspicious-call-argument,\ -readability-uppercase-literal-suffix,\ +cmake-*,\ " HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$' CheckOptions: diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 6195d1f..321122a 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -5532,7 +5532,7 @@ cmGeneratorTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const } else if (cmHasLiteralPrefix(*location, "Resources/")) { flags.Type = cmGeneratorTarget::SourceFileTypeDeepResource; if (stripResources) { - flags.MacFolder += strlen("Resources/"); + flags.MacFolder += cmStrLen("Resources/"); } } else { flags.Type = cmGeneratorTarget::SourceFileTypeMacContent; |