mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For some reason, the new version of clang started to emit -Wc++-keyword warnings in C mode when -Weverything is enabled. This PR suppresses this warning. rdar://155324207
30 lines
1.4 KiB
INI
30 lines
1.4 KiB
INI
# Make a local copy of the substitutions.
|
|
config.substitutions = list(config.substitutions)
|
|
|
|
config.substitutions.insert(0, ('%check-in-clang',
|
|
'%%clang -fsyntax-only -x objective-c-header -fobjc-arc -fmodules '
|
|
'-fmodules-validate-system-headers '
|
|
'-Weverything -Werror -Wno-unused-macros -Wno-incomplete-module '
|
|
'-Wno-auto-import '
|
|
'-F %%clang-importer-sdk-path/frameworks '
|
|
'-I %%clang-include-dir '
|
|
'-isysroot %r/Inputs/clang-importer-sdk' % config.test_source_root) )
|
|
|
|
config.substitutions.insert(0, ('%check-in-clang-c',
|
|
'%%clang-no-modules -fsyntax-only -x c-header -std=c99 '
|
|
'-Weverything -Werror -Wno-unused-macros -Wno-incomplete-module '
|
|
'-Wno-auto-import -Wno-poison-system-directories -Wno-c++-keyword '
|
|
'-Wno-unknown-warning-option -F %%clang-importer-sdk-path/frameworks '
|
|
'-I %%clang-include-dir '
|
|
'-isysroot %r/Inputs/clang-importer-sdk' % config.test_source_root) )
|
|
|
|
config.substitutions.insert(0, ('%check-in-clang-cxx',
|
|
'%%clang -fsyntax-only -x objective-c++-header -std=c++17 '
|
|
'-fobjc-arc -fmodules -fmodules-validate-system-headers '
|
|
'-Weverything -Werror -Wno-unused-macros -Wno-incomplete-module '
|
|
'-Wno-auto-import -Wno-c++98-compat-pedantic '
|
|
'-Wno-unused-command-line-argument '
|
|
'-F %%clang-importer-sdk-path/frameworks '
|
|
'-I %%clang-include-dir '
|
|
'-isysroot %r/Inputs/clang-importer-sdk' % config.test_source_root) )
|