njames93 created this revision. njames93 added a reviewer: thakis. Herald added subscribers: kbarton, xazax.hun, nemanjai. njames93 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Attempt to fix the 2 failing tests identifier in 48646. Appears that python3 doesn't like nested double quotes in single quoted strings, hopefully nested single quotes in double quoted strings is a-ok. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D93979 Files: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp Index: clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp =================================================================== --- clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp +++ clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp @@ -1,15 +1,12 @@ -// FIXME: PR48646 -// UNSUPPORTED: system-windows - // RUN: %check_clang_tidy %s readability-identifier-naming %t -- \ -// RUN: -config='{CheckOptions: [ \ +// RUN: -config="{CheckOptions: [ \ // RUN: {key: readability-identifier-naming.ParameterCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.ParameterIgnoredRegexp, value: "^[a-z]{1,2}$"}, \ +// RUN: {key: readability-identifier-naming.ParameterIgnoredRegexp, value: '^[a-z]{1,2}$'}, \ // RUN: {key: readability-identifier-naming.ClassCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.ClassIgnoredRegexp, value: "^fo$|^fooo$"}, \ +// RUN: {key: readability-identifier-naming.ClassIgnoredRegexp, value: '^fo$|^fooo$'}, \ // RUN: {key: readability-identifier-naming.StructCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.StructIgnoredRegexp, value: "sooo|so|soo|$invalidregex["} \ -// RUN: ]}' +// RUN: {key: readability-identifier-naming.StructIgnoredRegexp, value: 'sooo|so|soo|$invalidregex['} \ +// RUN: ]}" int testFunc(int a, char **b); int testFunc(int ab, char **ba); Index: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp =================================================================== --- clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp +++ clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp @@ -1,9 +1,6 @@ -// FIXME: PR48646 -// UNSUPPORTED: system-windows - // RUN: %check_clang_tidy %s cppcoreguidelines-macro-usage %t \ -// RUN: -config='{CheckOptions: \ -// RUN: [{key: cppcoreguidelines-macro-usage.AllowedRegexp, value: "DEBUG_*|TEST_*"}]}' -- +// RUN: -config="{CheckOptions: \ +// RUN: [{key: cppcoreguidelines-macro-usage.AllowedRegexp, value: 'DEBUG_*|TEST_*'}]}" -- #ifndef INCLUDE_GUARD #define INCLUDE_GUARD
Index: clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp =================================================================== --- clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp +++ clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp @@ -1,15 +1,12 @@ -// FIXME: PR48646 -// UNSUPPORTED: system-windows - // RUN: %check_clang_tidy %s readability-identifier-naming %t -- \ -// RUN: -config='{CheckOptions: [ \ +// RUN: -config="{CheckOptions: [ \ // RUN: {key: readability-identifier-naming.ParameterCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.ParameterIgnoredRegexp, value: "^[a-z]{1,2}$"}, \ +// RUN: {key: readability-identifier-naming.ParameterIgnoredRegexp, value: '^[a-z]{1,2}$'}, \ // RUN: {key: readability-identifier-naming.ClassCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.ClassIgnoredRegexp, value: "^fo$|^fooo$"}, \ +// RUN: {key: readability-identifier-naming.ClassIgnoredRegexp, value: '^fo$|^fooo$'}, \ // RUN: {key: readability-identifier-naming.StructCase, value: CamelCase}, \ -// RUN: {key: readability-identifier-naming.StructIgnoredRegexp, value: "sooo|so|soo|$invalidregex["} \ -// RUN: ]}' +// RUN: {key: readability-identifier-naming.StructIgnoredRegexp, value: 'sooo|so|soo|$invalidregex['} \ +// RUN: ]}" int testFunc(int a, char **b); int testFunc(int ab, char **ba); Index: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp =================================================================== --- clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp +++ clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-macro-usage-custom.cpp @@ -1,9 +1,6 @@ -// FIXME: PR48646 -// UNSUPPORTED: system-windows - // RUN: %check_clang_tidy %s cppcoreguidelines-macro-usage %t \ -// RUN: -config='{CheckOptions: \ -// RUN: [{key: cppcoreguidelines-macro-usage.AllowedRegexp, value: "DEBUG_*|TEST_*"}]}' -- +// RUN: -config="{CheckOptions: \ +// RUN: [{key: cppcoreguidelines-macro-usage.AllowedRegexp, value: 'DEBUG_*|TEST_*'}]}" -- #ifndef INCLUDE_GUARD #define INCLUDE_GUARD
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits