llvm-project/clang/test/Misc
Daniel Rodríguez Troitiño d11b9fa3bf [clang][macho] Add support for -darwin-target-variant-sdk-version in cc1as
D121868 provided support for -darwin-target-variant-triple, but the
support for -darwin-target-variant-sdk-version was still missing for
cc1as. These changes build upon the previous and provides such support.

- Extracted the common code to handle -darwin-target-variant-triple and
  -darwin-target-variant-sdk-version in the Darwin toolchain to a method
  that can be used for both the cc1 and the cc1as job construction.
  cc1as does not support some of the parameters that were provided to
  cc1, so the same code cannot be used for both.
- Invoke that new common code when constructing a cc1as invocation.
- Parse the new -darwin-target-variant-sdk-version in the cc1as driver.
  Apply its value to the MCObjectFileInfo to generate the right values
  in the object files.
- Includes two new tests that check that cc1as uses the provided values
  in -darwin-target-variant-sdk and that the Clang driver creates the
  jobs with the correct arguments.

Differential Revision: https://reviews.llvm.org/D135729
2022-10-14 14:33:10 -07:00
..
Inputs Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
amdgcn.languageOptsOpenCL.cl [OpenCL] Add clang extension for bit-fields. 2021-05-24 12:42:17 +01:00
attr-source-range.cpp
backend-optimization-failure-nodbg.cpp
backend-optimization-failure.cpp
backend-resource-limit-diagnostics.cl Make DiagnosticInfoResourceLimit's limit param required 2021-09-21 15:27:58 -07:00
backend-stack-frame-diagnostics-attributes.cpp [clang] Don't generate warn-stack-size when the warning is ignored 2021-08-25 14:58:45 +08:00
backend-stack-frame-diagnostics-fallback.cpp [clang] Don't use the AST to display backend diagnostics 2021-10-04 14:14:32 -07:00
backend-stack-frame-diagnostics.cpp [clang] Don't use the AST to display backend diagnostics 2021-10-04 14:14:32 -07:00
caret-diags-macros.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
caret-diags-multiline.cpp
caret-diags-scratch-buffer.c
cc1as-asm-debug.s
cc1as-asm.s
cc1as-compress.s [cc1as] Support --compress-debug-sections=zstd 2022-09-08 16:31:45 -07:00
cc1as-darwin-target-variant-sdk-version.s [clang][macho] Add support for -darwin-target-variant-sdk-version in cc1as 2022-10-14 14:33:10 -07:00
cc1as-darwin-target-variant-triple.s [cc1as] Add support for emitting the build version load command for -darwin-target-variant 2022-04-22 08:38:07 -04:00
cc1as-debug-format.s [Driver] Support -gdwarf64 for assembly files 2021-02-17 17:03:34 +07:00
cc1as-split-dwarf.s
clear-ast-before-backend-plugins.c [test] Make sure plugin actually runs in clear-ast-before-backend-plugins.c 2021-10-21 11:38:16 -07:00
clear-ast-before-backend.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
dev-fd-fs.c Basic: Support named pipes natively in SourceManager and FileManager 2020-12-23 14:57:41 -08:00
diag-aka-types.cpp [clang][clangd] Desugar array type. 2021-12-09 20:12:48 +08:00
diag-format.c [clang-cl] Remove the /fallback option 2021-02-04 10:33:16 +01:00
diag-greatergreater.cpp
diag-inline-namespace.cpp Fix assertion when generating diagnostic for inline namespaces 2021-08-20 09:50:24 -04:00
diag-line-wrapping.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
diag-macro-backtrace.c
diag-macro-backtrace2.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
diag-mapping.c
diag-mapping2.c [test] Test -Werror=foo -Wfoo & -Werror -Wno-error=foo -Wfoo 2022-04-15 20:14:07 -07:00
diag-null-bytes-in-line.cpp
diag-presumed.c
diag-special-chars.c Improve handling of static assert messages. 2022-06-29 14:57:35 +02:00
diag-template-diffing-color.cpp
diag-template-diffing-cxx98.cpp
diag-template-diffing.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
diag-template.cpp Fully qualify template template parameters when printing 2021-09-02 15:04:34 -07:00
diag-trailing-null-bytes.cpp
diag-verify.cpp
diagnostic-crash.cpp
driver-verify.c [Clang] Make Clang driver suggest '-Xclang' for CC1 options passed to the driver 2022-09-24 07:58:40 -05:00
emit-html-insert.c
emit-html.c
error-limit-multiple-notes.cpp
error-limit.c
explicit.cpp [clang]: Remove assertion which checks explicit declaration 2020-08-20 18:15:43 -07:00
ffp-contract.c Making the code compliant to the documentation about Floating Point 2021-11-11 07:40:35 -05:00
find-diagnostic-id.c
freebsd-arm-size_t.c
fuzzer-dictionary.test [clang-fuzzer] Add a tiny tool to generate a fuzzing dictionary for clang 2022-05-09 18:25:29 +02:00
include-stack-for-note-flag.cpp
inline-asm-clobber-warning.c [llvm][AsmPrinter] Restore source location to register clobber warning 2021-05-14 08:22:57 +00:00
integer-literal-printing.cpp Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
languageOptsOpenCL.cl
loop-opt-setup.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
macro-backtrace.c
message-length.c [Driver] Don't pass -fmessage-length=0 to CC1 2020-03-31 17:12:08 -07:00
no-warn-in-system-macro.c
no-warn-in-system-macro.c.inc
nvptx.languageOptsOpenCL.cl [OpenCL] Add clang extension for bit-fields. 2021-05-24 12:42:17 +01:00
nvptx.unsupported_core.cl [OpenCL] Introduce new method for validating OpenCL target 2021-04-28 16:00:02 +03:00
opencl-c-3.0.incorrect_options.cl [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
ppc-inline-asm-clobber-warning.c [PowerPC] Emit warning when SP is clobbered by asm 2022-01-24 15:12:23 -06:00
pragma-attribute-cxx.cpp [NFC] Remove string parameter of annotation attribute from AST childs. 2020-11-09 16:39:59 +01:00
pragma-attribute-objc.m [NFC] Remove string parameter of annotation attribute from AST childs. 2020-11-09 16:39:59 +01:00
pragma-attribute-strict-subjects.c
pragma-attribute-supported-attributes-list.test [Clang] Implement function attribute nouwtable 2022-08-29 12:12:19 -07:00
predefines.c
printer.c [test] Remove references to -fexperimental-new-pass-manager in tests 2022-04-11 13:29:08 -07:00
r600.languageOptsOpenCL.cl [OpenCL] Add clang extension for bit-fields. 2021-05-24 12:42:17 +01:00
r600.unsupported_core.cl [OpenCL] Introduce new method for validating OpenCL target 2021-04-28 16:00:02 +03:00
reduced-diags-macros-backtrace.cpp
reduced-diags-macros.cpp
remap-file.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
serialized-diags-bcanalyzer.c
serialized-diags-driver.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
serialized-diags-emit-header-module-misconfig.c [clang] Fix serialized diagnostics edge-cases 2022-01-26 11:21:51 +01:00
serialized-diags-empty-filename.c Make test runnable on read-only file systems. 2021-04-14 13:29:51 -07:00
serialized-diags-frontend.c
serialized-diags-no-category.c
serialized-diags-no-issue.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
serialized-diags-really-long-text.cpp
serialized-diags-single-issue.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
serialized-diags-stable.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00
serialized-diags-unknown-argument.c [clang] Fix serialized diagnostics edge-cases 2022-01-26 11:21:51 +01:00
serialized-diags-unknown-target.c [clang] Fix serialized diagnostics edge-cases 2022-01-26 11:21:51 +01:00
serialized-diags.c Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
serialized-diags.h
serialized-diags.m
show-diag-options.c [Driver] Flip the CC1 default of -fdiagnostics-show-option 2020-03-31 21:59:27 -07:00
tabstop.c Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
target-invalid-cpu-note.c Add support for CUDA-11.8 and sm_{87,89,90} GPUs. 2022-10-07 13:59:28 -07:00
target-parser.c
time-passes.c [test] Remove references to -fno-legacy-pass-manager in tests 2022-04-11 13:40:27 -07:00
unnecessary-elipses.cpp [Driver] Don't pass -fmessage-length=0 to CC1 2020-03-31 17:12:08 -07:00
unprintable.c [Driver] Don't pass -fmessage-length=0 to CC1 2020-03-31 17:12:08 -07:00
verify.c
warn-in-system-header.c
warn-in-system-header.h
warn-in-system-macro-def.c
warn-in-system-macro-def.c.inc
warn-sysheader.cpp
warning-flags-enabled.c
warning-flags-tree.c
warning-flags.c Revert "[analyzer] Deprecate `-analyzer-store region` flag" 2022-06-10 08:50:13 -04:00
warning-wall.c [clang] Introduce -Warray-parameter 2022-07-08 22:36:05 +02:00
win32-macho.c
working-directory.c
wrong-encoding.c Improve handling of static assert messages. 2022-06-29 14:57:35 +02:00
wrong-encoding2.c Use functions with prototypes when appropriate; NFC 2022-02-09 17:16:10 -05:00