clang-tidy: enable cmStrLen() check and fix violations
This commit is contained in:
parent
43481a77f9
commit
b4e8ddbc2f
@ -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:
|
||||
|
@ -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…
Reference in New Issue
Block a user