[clang-tidy] Fix windows tests

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.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D93979
This commit is contained in:
Nathan James 2021-01-04 00:39:33 +00:00
parent 98cd1c33e3
commit 59810c51e7
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
2 changed files with 7 additions and 13 deletions

View File

@ -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

View File

@ -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);