mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-17 09:11:36 -05:00
clang-tidy: enable cmStrLen() check and fix violations
This commit is contained in:
@@ -33,6 +33,7 @@ readability-*,\
|
|||||||
-readability-redundant-member-init,\
|
-readability-redundant-member-init,\
|
||||||
-readability-suspicious-call-argument,\
|
-readability-suspicious-call-argument,\
|
||||||
-readability-uppercase-literal-suffix,\
|
-readability-uppercase-literal-suffix,\
|
||||||
|
cmake-*,\
|
||||||
"
|
"
|
||||||
HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$'
|
HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$'
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
|
|||||||
@@ -5532,7 +5532,7 @@ cmGeneratorTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const
|
|||||||
} else if (cmHasLiteralPrefix(*location, "Resources/")) {
|
} else if (cmHasLiteralPrefix(*location, "Resources/")) {
|
||||||
flags.Type = cmGeneratorTarget::SourceFileTypeDeepResource;
|
flags.Type = cmGeneratorTarget::SourceFileTypeDeepResource;
|
||||||
if (stripResources) {
|
if (stripResources) {
|
||||||
flags.MacFolder += strlen("Resources/");
|
flags.MacFolder += cmStrLen("Resources/");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flags.Type = cmGeneratorTarget::SourceFileTypeMacContent;
|
flags.Type = cmGeneratorTarget::SourceFileTypeMacContent;
|
||||||
|
|||||||
Reference in New Issue
Block a user