Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C_Cpp.codeAnalysis.clangTidy-config setting results in 'invalid configuration specified' #12981

Closed
jalanh11640 opened this issue Nov 20, 2024 · 2 comments
Labels
duplicate Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.

Comments

@jalanh11640
Copy link

Environment

  • OS and Version: macOS Sequoia version 15.2
  • VS Code Version: Version: 1.95.3 (Universal)
  • C/C++ Extension Version: v1.22.11
  • If using SSH remote, specify OS of remote machine: N/A

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Create file .clang-tidy with the following contents:
---
Checks: >
    modernize-*
  1. Create test.cpp with the following contents:
int TestFunc()
{
    char *name = 0;

    return 0;
}
  1. Activate Run Code Analysis on Active File for test.cpp
  2. See that the analysis works as expected.
  3. Move .clang-tidy to .devops/clang_configs/clang-tidy-modernize
  4. Add "C_Cpp.codeAnalysis.clangTidy.config": ".devops/clang_configs/clang-tidy-modernize" to user settings.json
  5. Activate Run Code Analysis on Active File for test.cpp
  6. Expected behavior: Step 7 should show the same results as Step 3. However, what is seen in the 'C/C++' log is Error: invalid configuration specified.

Configuration and Logs

I have no c_cpp_properties.json file.

Here is the clang-tidy output form the C/C++ Log Diagnostics:

/Users/jeff/.vscode/extensions/ms-vscode.cpptools-1.22.11-darwin-arm64/bin/../LLVM/bin/clang-tidy
--config=.devops/clang_configs/clang-tidy-modernize
--export-fixes=/private/var/folders/jf/8f2w8xgx6k3cspsbfsrnj03m0000gn/T/{9110245425544558339}/fixes6167113728.yaml
--quiet
--use-color=false
/Users/jeff/Documents/Development/VscodeBug/test.cpp
--
-std=c++17
-xc++
-Wno-pragma-pack
-Wno-pragma-once-outside-header
-Wno-elaborated-enum-base
-D_LP64=1
-D__AARCH64EL__=1
-D__AARCH64_CMODEL_SMALL__=1
-D__AARCH64_SIMD__=1
-D__APPLE_CC__=6000
-D__APPLE__=1
-D__ARM64_ARCH_8__=1
-D__ARM_64BIT_STATE=1
-D__ARM_ACLE=200
-D__ARM_ALIGN_MAX_STACK_PWR=4
-D__ARM_ARCH=8
-D__ARM_ARCH_8_3__=1
-D__ARM_ARCH_8_4__=1
-D__ARM_ARCH_8_5__=1
-D__ARM_ARCH_ISA_A64=1
-D__ARM_ARCH_PROFILE='A'
-D__ARM_FEATURE_AES=1
-D__ARM_FEATURE_ATOMICS=1
-D__ARM_FEATURE_BTI=1
-D__ARM_FEATURE_CLZ=1
-D__ARM_FEATURE_COMPLEX=1
-D__ARM_FEATURE_CRC32=1
-D__ARM_FEATURE_CRYPTO=1
-D__ARM_FEATURE_DIRECTED_ROUNDING=1
-D__ARM_FEATURE_DIV=1
-D__ARM_FEATURE_DOTPROD=1
-D__ARM_FEATURE_FMA=1
-D__ARM_FEATURE_FP16_FML=1
-D__ARM_FEATURE_FP16_SCALAR_ARITHMETIC=1
-D__ARM_FEATURE_FP16_VECTOR_ARITHMETIC=1
-D__ARM_FEATURE_FRINT=1
-D__ARM_FEATURE_IDIV=1
-D__ARM_FEATURE_JCVT=1
-D__ARM_FEATURE_LDREX=0xF
-D__ARM_FEATURE_NUMERIC_MAXMIN=1
-D__ARM_FEATURE_PAUTH=1
-D__ARM_FEATURE_QRDMX=1
-D__ARM_FEATURE_RCPC=1
-D__ARM_FEATURE_SHA2=1
-D__ARM_FEATURE_SHA3=1
-D__ARM_FEATURE_SHA512=1
-D__ARM_FEATURE_UNALIGNED=1
-D__ARM_FP=0xE
-D__ARM_FP16_ARGS=1
-D__ARM_FP16_FORMAT_IEEE=1
-D__ARM_NEON=1
-D__ARM_NEON_FP=0xE
-D__ARM_NEON__=1
-D__ARM_PCS_AAPCS64=1
-D__ARM_SIZEOF_MINIMAL_ENUM=4
-D__ARM_SIZEOF_WCHAR_T=4
-D__ATOMIC_ACQUIRE=2
-D__ATOMIC_ACQ_REL=4
-D__ATOMIC_CONSUME=1
-D__ATOMIC_RELAXED=0
-D__ATOMIC_RELEASE=3
-D__ATOMIC_SEQ_CST=5
-D__BIGGEST_ALIGNMENT__=8
-D__BITINT_MAXWIDTH__=128
-D__BOOL_WIDTH__=8
-D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__
-D__CHAR16_TYPE__=unsigned short
-D__CHAR32_TYPE__=unsigned int
-D__CHAR_BIT__=8
-D__CLANG_ATOMIC_BOOL_LOCK_FREE=2
-D__CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2
-D__CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2
-D__CLANG_ATOMIC_CHAR_LOCK_FREE=2
-D__CLANG_ATOMIC_INT_LOCK_FREE=2
-D__CLANG_ATOMIC_LLONG_LOCK_FREE=2
-D__CLANG_ATOMIC_LONG_LOCK_FREE=2
-D__CLANG_ATOMIC_POINTER_LOCK_FREE=2
-D__CLANG_ATOMIC_SHORT_LOCK_FREE=2
-D__CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2
-D__CONSTANT_CFSTRINGS__=1
-D__DBL_DECIMAL_DIG__=17
-D__DBL_DENORM_MIN__=4.9406564584124654e-324
-D__DBL_DIG__=15
-D__DBL_EPSILON__=2.2204460492503131e-16
-D__DBL_HAS_DENORM__=1
-D__DBL_HAS_INFINITY__=1
-D__DBL_HAS_QUIET_NAN__=1
-D__DBL_MANT_DIG__=53
-D__DBL_MAX_10_EXP__=308
-D__DBL_MAX_EXP__=1024
-D__DBL_MAX__=1.7976931348623157e+308
-D__DBL_MIN_10_EXP__=(-307)
-D__DBL_MIN_EXP__=(-1021)
-D__DBL_MIN__=2.2250738585072014e-308
-D__DECIMAL_DIG__=__LDBL_DECIMAL_DIG__
-D__DEPRECATED=1
-D__DYNAMIC__=1
-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=150000
-D__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__=150000
-D__EXCEPTIONS=1
-D__FINITE_MATH_ONLY__=0
-D__FLT16_DECIMAL_DIG__=5
-D__FLT16_DENORM_MIN__=5.9604644775390625e-8F16
-D__FLT16_DIG__=3
-D__FLT16_EPSILON__=9.765625e-4F16
-D__FLT16_HAS_DENORM__=1
-D__FLT16_HAS_INFINITY__=1
-D__FLT16_HAS_QUIET_NAN__=1
-D__FLT16_MANT_DIG__=11
-D__FLT16_MAX_10_EXP__=4
-D__FLT16_MAX_EXP__=16
-D__FLT16_MAX__=6.5504e+4F16
-D__FLT16_MIN_10_EXP__=(-4)
-D__FLT16_MIN_EXP__=(-13)
-D__FLT16_MIN__=6.103515625e-5F16
-D__FLT_DECIMAL_DIG__=9
-D__FLT_DENORM_MIN__=1.40129846e-45F
-D__FLT_DIG__=6
-D__FLT_EPSILON__=1.19209290e-7F
-D__FLT_HAS_DENORM__=1
-D__FLT_HAS_INFINITY__=1
-D__FLT_HAS_QUIET_NAN__=1
-D__FLT_MANT_DIG__=24
-D__FLT_MAX_10_EXP__=38
-D__FLT_MAX_EXP__=128
-D__FLT_MAX__=3.40282347e+38F
-D__FLT_MIN_10_EXP__=(-37)
-D__FLT_MIN_EXP__=(-125)
-D__FLT_MIN__=1.17549435e-38F
-D__FLT_RADIX__=2
-D__FPCLASS_NEGINF=0x0004
-D__FPCLASS_NEGNORMAL=0x0008
-D__FPCLASS_NEGSUBNORMAL=0x0010
-D__FPCLASS_NEGZERO=0x0020
-D__FPCLASS_POSINF=0x0200
-D__FPCLASS_POSNORMAL=0x0100
-D__FPCLASS_POSSUBNORMAL=0x0080
-D__FPCLASS_POSZERO=0x0040
-D__FPCLASS_QNAN=0x0002
-D__FPCLASS_SNAN=0x0001
-D__FP_FAST_FMA=1
-D__FP_FAST_FMAF=1
-D__GCC_ASM_FLAG_OUTPUTS__=1
-D__GCC_ATOMIC_BOOL_LOCK_FREE=2
-D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2
-D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2
-D__GCC_ATOMIC_CHAR_LOCK_FREE=2
-D__GCC_ATOMIC_INT_LOCK_FREE=2
-D__GCC_ATOMIC_LLONG_LOCK_FREE=2
-D__GCC_ATOMIC_LONG_LOCK_FREE=2
-D__GCC_ATOMIC_POINTER_LOCK_FREE=2
-D__GCC_ATOMIC_SHORT_LOCK_FREE=2
-D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1
-D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2
-D__GCC_HAVE_DWARF2_CFI_ASM=1
-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1
-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1
-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1
-D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1
-D__GNUC_GNU_INLINE__=1
-D__GNUG__=4
-D__GXX_ABI_VERSION=1002
-D__GXX_EXPERIMENTAL_CXX0X__=1
-D__GXX_RTTI=1
-D__GXX_WEAK__=1
-D__HAVE_FUNCTION_MULTI_VERSIONING=1
-D__INT16_C_SUFFIX__=
-D__INT16_FMTd__="hd"
-D__INT16_FMTi__="hi"
-D__INT16_MAX__=32767
-D__INT16_TYPE__=short
-D__INT32_C_SUFFIX__=
-D__INT32_FMTd__="d"
-D__INT32_FMTi__="i"
-D__INT32_MAX__=2147483647
-D__INT32_TYPE__=int
-D__INT64_C_SUFFIX__=LL
-D__INT64_FMTd__="lld"
-D__INT64_FMTi__="lli"
-D__INT64_MAX__=9223372036854775807LL
-D__INT64_TYPE__=long long int
-D__INT8_C_SUFFIX__=
-D__INT8_FMTd__="hhd"
-D__INT8_FMTi__="hhi"
-D__INT8_MAX__=127
-D__INT8_TYPE__=signed char
-D__INTMAX_C_SUFFIX__=L
-D__INTMAX_FMTd__="ld"
-D__INTMAX_FMTi__="li"
-D__INTMAX_MAX__=9223372036854775807L
-D__INTMAX_TYPE__=long int
-D__INTMAX_WIDTH__=64
-D__INTPTR_FMTd__="ld"
-D__INTPTR_FMTi__="li"
-D__INTPTR_MAX__=9223372036854775807L
-D__INTPTR_TYPE__=long int
-D__INTPTR_WIDTH__=64
-D__INT_FAST16_FMTd__="hd"
-D__INT_FAST16_FMTi__="hi"
-D__INT_FAST16_MAX__=32767
-D__INT_FAST16_TYPE__=short
-D__INT_FAST16_WIDTH__=16
-D__INT_FAST32_FMTd__="d"
-D__INT_FAST32_FMTi__="i"
-D__INT_FAST32_MAX__=2147483647
-D__INT_FAST32_TYPE__=int
-D__INT_FAST32_WIDTH__=32
-D__INT_FAST64_FMTd__="lld"
-D__INT_FAST64_FMTi__="lli"
-D__INT_FAST64_MAX__=9223372036854775807LL
-D__INT_FAST64_TYPE__=long long int
-D__INT_FAST64_WIDTH__=64
-D__INT_FAST8_FMTd__="hhd"
-D__INT_FAST8_FMTi__="hhi"
-D__INT_FAST8_MAX__=127
-D__INT_FAST8_TYPE__=signed char
-D__INT_FAST8_WIDTH__=8
-D__INT_LEAST16_FMTd__="hd"
-D__INT_LEAST16_FMTi__="hi"
-D__INT_LEAST16_MAX__=32767
-D__INT_LEAST16_TYPE__=short
-D__INT_LEAST16_WIDTH__=16
-D__INT_LEAST32_FMTd__="d"
-D__INT_LEAST32_FMTi__="i"
-D__INT_LEAST32_MAX__=2147483647
-D__INT_LEAST32_TYPE__=int
-D__INT_LEAST32_WIDTH__=32
-D__INT_LEAST64_FMTd__="lld"
-D__INT_LEAST64_FMTi__="lli"
-D__INT_LEAST64_MAX__=9223372036854775807LL
-D__INT_LEAST64_TYPE__=long long int
-D__INT_LEAST64_WIDTH__=64
-D__INT_LEAST8_FMTd__="hhd"
-D__INT_LEAST8_FMTi__="hhi"
-D__INT_LEAST8_MAX__=127
-D__INT_LEAST8_TYPE__=signed char
-D__INT_LEAST8_WIDTH__=8
-D__INT_MAX__=2147483647
-D__INT_WIDTH__=32
-D__LDBL_DECIMAL_DIG__=17
-D__LDBL_DENORM_MIN__=4.9406564584124654e-324L
-D__LDBL_DIG__=15
-D__LDBL_EPSILON__=2.2204460492503131e-16L
-D__LDBL_HAS_DENORM__=1
-D__LDBL_HAS_INFINITY__=1
-D__LDBL_HAS_QUIET_NAN__=1
-D__LDBL_MANT_DIG__=53
-D__LDBL_MAX_10_EXP__=308
-D__LDBL_MAX_EXP__=1024
-D__LDBL_MAX__=1.7976931348623157e+308L
-D__LDBL_MIN_10_EXP__=(-307)
-D__LDBL_MIN_EXP__=(-1021)
-D__LDBL_MIN__=2.2250738585072014e-308L
-D__LITTLE_ENDIAN__=1
-D__LLONG_WIDTH__=64
-D__LONG_LONG_MAX__=9223372036854775807LL
-D__LONG_MAX__=9223372036854775807L
-D__LONG_WIDTH__=64
-D__LP64__=1
-D__MACH__=1
-D__NO_INLINE__=1
-D__NO_MATH_ERRNO__=1
-D__OBJC_BOOL_IS_BOOL=1
-D__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3
-D__OPENCL_MEMORY_SCOPE_DEVICE=2
-D__OPENCL_MEMORY_SCOPE_SUB_GROUP=4
-D__OPENCL_MEMORY_SCOPE_WORK_GROUP=1
-D__OPENCL_MEMORY_SCOPE_WORK_ITEM=0
-D__ORDER_BIG_ENDIAN__=4321
-D__ORDER_LITTLE_ENDIAN__=1234
-D__ORDER_PDP_ENDIAN__=3412
-D__PIC__=2
-D__POINTER_WIDTH__=64
-D__PRAGMA_REDEFINE_EXTNAME=1
-D__PTRDIFF_FMTd__="ld"
-D__PTRDIFF_FMTi__="li"
-D__PTRDIFF_MAX__=9223372036854775807L
-D__PTRDIFF_TYPE__=long int
-D__PTRDIFF_WIDTH__=64
-D__REGISTER_PREFIX__=
-D__SCHAR_MAX__=127
-D__SHRT_MAX__=32767
-D__SHRT_WIDTH__=16
-D__SIG_ATOMIC_MAX__=2147483647
-D__SIG_ATOMIC_WIDTH__=32
-D__SIZEOF_DOUBLE__=8
-D__SIZEOF_FLOAT__=4
-D__SIZEOF_INT128__=16
-D__SIZEOF_INT__=4
-D__SIZEOF_LONG_DOUBLE__=8
-D__SIZEOF_LONG_LONG__=8
-D__SIZEOF_LONG__=8
-D__SIZEOF_POINTER__=8
-D__SIZEOF_PTRDIFF_T__=8
-D__SIZEOF_SHORT__=2
-D__SIZEOF_SIZE_T__=8
-D__SIZEOF_WCHAR_T__=4
-D__SIZEOF_WINT_T__=4
-D__SIZE_FMTX__="lX"
-D__SIZE_FMTo__="lo"
-D__SIZE_FMTu__="lu"
-D__SIZE_FMTx__="lx"
-D__SIZE_MAX__=18446744073709551615UL
-D__SIZE_TYPE__=long unsigned int
-D__SIZE_WIDTH__=64
-D__SSP__=1
-D__STDCPP_DEFAULT_NEW_ALIGNMENT__=16UL
-D__STDCPP_THREADS__=1
-D__STDC_HOSTED__=1
-D__STDC_NO_THREADS__=1
-D__STDC_UTF_16__=1
-D__STDC_UTF_32__=1
-D__STDC__=1
-D__STRICT_ANSI__=1
-D__UINT16_C_SUFFIX__=
-D__UINT16_FMTX__="hX"
-D__UINT16_FMTo__="ho"
-D__UINT16_FMTu__="hu"
-D__UINT16_FMTx__="hx"
-D__UINT16_MAX__=65535
-D__UINT16_TYPE__=unsigned short
-D__UINT32_C_SUFFIX__=U
-D__UINT32_FMTX__="X"
-D__UINT32_FMTo__="o"
-D__UINT32_FMTu__="u"
-D__UINT32_FMTx__="x"
-D__UINT32_MAX__=4294967295U
-D__UINT32_TYPE__=unsigned int
-D__UINT64_C_SUFFIX__=ULL
-D__UINT64_FMTX__="llX"
-D__UINT64_FMTo__="llo"
-D__UINT64_FMTu__="llu"
-D__UINT64_FMTx__="llx"
-D__UINT64_MAX__=18446744073709551615ULL
-D__UINT64_TYPE__=long long unsigned int
-D__UINT8_C_SUFFIX__=
-D__UINT8_FMTX__="hhX"
-D__UINT8_FMTo__="hho"
-D__UINT8_FMTu__="hhu"
-D__UINT8_FMTx__="hhx"
-D__UINT8_MAX__=255
-D__UINT8_TYPE__=unsigned char
-D__UINTMAX_C_SUFFIX__=UL
-D__UINTMAX_FMTX__="lX"
-D__UINTMAX_FMTo__="lo"
-D__UINTMAX_FMTu__="lu"
-D__UINTMAX_FMTx__="lx"
-D__UINTMAX_MAX__=18446744073709551615UL
-D__UINTMAX_TYPE__=long unsigned int
-D__UINTMAX_WIDTH__=64
-D__UINTPTR_FMTX__="lX"
-D__UINTPTR_FMTo__="lo"
-D__UINTPTR_FMTu__="lu"
-D__UINTPTR_FMTx__="lx"
-D__UINTPTR_MAX__=18446744073709551615UL
-D__UINTPTR_TYPE__=long unsigned int
-D__UINTPTR_WIDTH__=64
-D__UINT_FAST16_FMTX__="hX"
-D__UINT_FAST16_FMTo__="ho"
-D__UINT_FAST16_FMTu__="hu"
-D__UINT_FAST16_FMTx__="hx"
-D__UINT_FAST16_MAX__=65535
-D__UINT_FAST16_TYPE__=unsigned short
-D__UINT_FAST32_FMTX__="X"
-D__UINT_FAST32_FMTo__="o"
-D__UINT_FAST32_FMTu__="u"
-D__UINT_FAST32_FMTx__="x"
-D__UINT_FAST32_MAX__=4294967295U
-D__UINT_FAST32_TYPE__=unsigned int
-D__UINT_FAST64_FMTX__="llX"
-D__UINT_FAST64_FMTo__="llo"
-D__UINT_FAST64_FMTu__="llu"
-D__UINT_FAST64_FMTx__="llx"
-D__UINT_FAST64_MAX__=18446744073709551615ULL
-D__UINT_FAST64_TYPE__=long long unsigned int
-D__UINT_FAST8_FMTX__="hhX"
-D__UINT_FAST8_FMTo__="hho"
-D__UINT_FAST8_FMTu__="hhu"
-D__UINT_FAST8_FMTx__="hhx"
-D__UINT_FAST8_MAX__=255
-D__UINT_FAST8_TYPE__=unsigned char
-D__UINT_LEAST16_FMTX__="hX"
-D__UINT_LEAST16_FMTo__="ho"
-D__UINT_LEAST16_FMTu__="hu"
-D__UINT_LEAST16_FMTx__="hx"
-D__UINT_LEAST16_MAX__=65535
-D__UINT_LEAST16_TYPE__=unsigned short
-D__UINT_LEAST32_FMTX__="X"
-D__UINT_LEAST32_FMTo__="o"
-D__UINT_LEAST32_FMTu__="u"
-D__UINT_LEAST32_FMTx__="x"
-D__UINT_LEAST32_MAX__=4294967295U
-D__UINT_LEAST32_TYPE__=unsigned int
-D__UINT_LEAST64_FMTX__="llX"
-D__UINT_LEAST64_FMTo__="llo"
-D__UINT_LEAST64_FMTu__="llu"
-D__UINT_LEAST64_FMTx__="llx"
-D__UINT_LEAST64_MAX__=18446744073709551615ULL
-D__UINT_LEAST64_TYPE__=long long unsigned int
-D__UINT_LEAST8_FMTX__="hhX"
-D__UINT_LEAST8_FMTo__="hho"
-D__UINT_LEAST8_FMTu__="hhu"
-D__UINT_LEAST8_FMTx__="hhx"
-D__UINT_LEAST8_MAX__=255
-D__UINT_LEAST8_TYPE__=unsigned char
-D__USER_LABEL_PREFIX__=_
-D__WCHAR_MAX__=2147483647
-D__WCHAR_TYPE__=int
-D__WCHAR_WIDTH__=32
-D__WINT_MAX__=2147483647
-D__WINT_TYPE__=int
-D__WINT_WIDTH__=32
-D__aarch64__=1
-D__apple_build_version__=16000026
-D__arm64=1
-D__arm64__=1
-D__clang__=1
-D__clang_literal_encoding__="UTF-8"
-D__clang_major__=16
-D__clang_minor__=0
-D__clang_patchlevel__=0
-D__clang_version__="16.0.0 (clang-1600.0.26.3)"
-D__clang_wide_literal_encoding__="UTF-32"
-D__cplusplus=201703L
-D__cpp_aggregate_bases=201603L
-D__cpp_aggregate_nsdmi=201304L
-D__cpp_alias_templates=200704L
-D__cpp_aligned_new=201606L
-D__cpp_attributes=200809L
-D__cpp_binary_literals=201304L
-D__cpp_capture_star_this=201603L
-D__cpp_constexpr=201603L
-D__cpp_constexpr_in_decltype=201711L
-D__cpp_decltype=200707L
-D__cpp_decltype_auto=201304L
-D__cpp_deduction_guides=201703L
-D__cpp_delegating_constructors=200604L
-D__cpp_digit_separators=201309L
-D__cpp_enumerator_attributes=201411L
-D__cpp_exceptions=199711L
-D__cpp_fold_expressions=201603L
-D__cpp_generic_lambdas=201304L
-D__cpp_guaranteed_copy_elision=201606L
-D__cpp_hex_float=201603L
-D__cpp_if_constexpr=201606L
-D__cpp_impl_destroying_delete=201806L
-D__cpp_inheriting_constructors=201511L
-D__cpp_init_captures=201304L
-D__cpp_initializer_lists=200806L
-D__cpp_inline_variables=201606L
-D__cpp_lambdas=200907L
-D__cpp_named_character_escapes=202207L
-D__cpp_namespace_attributes=201411L
-D__cpp_nested_namespace_definitions=201411L
-D__cpp_noexcept_function_type=201510L
-D__cpp_nontype_template_args=201411L
-D__cpp_nontype_template_parameter_auto=201606L
-D__cpp_nsdmi=200809L
-D__cpp_range_based_for=201603L
-D__cpp_raw_strings=200710L
-D__cpp_ref_qualifiers=200710L
-D__cpp_return_type_deduction=201304L
-D__cpp_rtti=199711L
-D__cpp_rvalue_references=200610L
-D__cpp_static_assert=201411L
-D__cpp_static_call_operator=202207L
-D__cpp_structured_bindings=201606L
-D__cpp_template_auto=201606L
-D__cpp_threadsafe_static_init=200806L
-D__cpp_unicode_characters=200704L
-D__cpp_unicode_literals=200710L
-D__cpp_user_defined_literals=200809L
-D__cpp_variable_templates=201304L
-D__cpp_variadic_templates=200704L
-D__cpp_variadic_using=201611L
-D__llvm__=1
-D__nonnull=_Nonnull
-D__null_unspecified=_Null_unspecified
-D__nullable=_Nullable
-D__pic__=2
-D__private_extern__=extern
-D__strong=
-D__unsafe_unretained=
-D__weak=__attribute__((objc_gc(weak)))
-F
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include
-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
<command-line-config>:1:1: error: not a mapping
.devops/clang_configs/clang-tidy-modernize
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: invalid configuration specified.
Invalid argument

Other Extensions

No response

Additional context

No response

@sean-mcmanus
Copy link
Contributor

@jalanh11640 The config property only corresponds to the clang-tidy --config command line argument, which doesn't accept a file. We're tracking adding a separate configFile property at #10006, and there's a workaround described in that issue.

@sean-mcmanus sean-mcmanus added duplicate Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc. labels Nov 20, 2024
@jalanh11640
Copy link
Author

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.
Projects
None yet
Development

No branches or pull requests

2 participants