Browse Source

clang-tidy: enable cmStrLen() check and fix violations

pull/355/head
Kyle Edwards 3 years ago
parent
commit
b4e8ddbc2f
  1. 1
      .clang-tidy
  2. 2
      Source/cmGeneratorTarget.cxx

1
.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:

2
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;

Loading…
Cancel
Save