diff --git a/clang-tools-extra/clang-tidy/misc/SuspiciousStringCompareCheck.cpp b/clang-tools-extra/clang-tidy/misc/SuspiciousStringCompareCheck.cpp index 4730626b62da..0361d315e112 100644 --- a/clang-tools-extra/clang-tidy/misc/SuspiciousStringCompareCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/SuspiciousStringCompareCheck.cpp @@ -22,50 +22,50 @@ AST_MATCHER(BinaryOperator, isComparisonOperator) { return Node.isComparisonOp(); } -constexpr char KnownStringCompareFunctions[] = "__builtin_memcmp;" - "__builtin_strcasecmp;" - "__builtin_strcmp;" - "__builtin_strncasecmp;" - "__builtin_strncmp;" - "_mbscmp;" - "_mbscmp_l;" - "_mbsicmp;" - "_mbsicmp_l;" - "_mbsnbcmp;" - "_mbsnbcmp_l;" - "_mbsnbicmp;" - "_mbsnbicmp_l;" - "_mbsncmp;" - "_mbsncmp_l;" - "_mbsnicmp;" - "_mbsnicmp_l;" - "_memicmp;" - "_memicmp_l;" - "_stricmp;" - "_stricmp_l;" - "_strnicmp;" - "_strnicmp_l;" - "_wcsicmp;" - "_wcsicmp_l;" - "_wcsnicmp;" - "_wcsnicmp_l;" - "lstrcmp;" - "lstrcmpi;" - "memcmp;" - "memicmp;" - "strcasecmp;" - "strcmp;" - "strcmpi;" - "stricmp;" - "strncasecmp;" - "strncmp;" - "strnicmp;" - "wcscasecmp;" - "wcscmp;" - "wcsicmp;" - "wcsncmp;" - "wcsnicmp;" - "wmemcmp;"; +static const char KnownStringCompareFunctions[] = "__builtin_memcmp;" + "__builtin_strcasecmp;" + "__builtin_strcmp;" + "__builtin_strncasecmp;" + "__builtin_strncmp;" + "_mbscmp;" + "_mbscmp_l;" + "_mbsicmp;" + "_mbsicmp_l;" + "_mbsnbcmp;" + "_mbsnbcmp_l;" + "_mbsnbicmp;" + "_mbsnbicmp_l;" + "_mbsncmp;" + "_mbsncmp_l;" + "_mbsnicmp;" + "_mbsnicmp_l;" + "_memicmp;" + "_memicmp_l;" + "_stricmp;" + "_stricmp_l;" + "_strnicmp;" + "_strnicmp_l;" + "_wcsicmp;" + "_wcsicmp_l;" + "_wcsnicmp;" + "_wcsnicmp_l;" + "lstrcmp;" + "lstrcmpi;" + "memcmp;" + "memicmp;" + "strcasecmp;" + "strcmp;" + "strcmpi;" + "stricmp;" + "strncasecmp;" + "strncmp;" + "strnicmp;" + "wcscasecmp;" + "wcscmp;" + "wcsicmp;" + "wcsncmp;" + "wcsnicmp;" + "wmemcmp;"; static const char StringCompareLikeFunctionsDelimiter[] = ";";