hanchenye-llvm-project/clang/test/Frontend
Alex Lorenz 0a264f3928 [darwin] parse the SDK settings from SDKSettings.json if it exists and
pass in the -target-sdk-version to the compiler and backend

This commit adds support for reading the SDKSettings.json file in the Darwin
driver. This file is used by the driver to determine the SDK's version, and it
uses that information to pass it down to the compiler using the new
-target-sdk-version= option. This option is then used to set the appropriate
SDK Version module metadata introduced in r349119.

Note: I had to adjust the two ast tests as the SDKROOT environment variable
on macOS caused SDK version to be picked up for the compilation of source file
but not the AST.

rdar://45774000

Differential Revision: https://reviews.llvm.org/D55673

llvm-svn: 349380
2018-12-17 19:19:15 +00:00
..
Inputs Move test input file into same directory as test. NFC 2018-05-08 00:29:21 +00:00
Weverything.c
Wno-everything.c
aarch64-target-cpu.c
absolute-paths.c
ast-codegen.c
ast-main.c [darwin] parse the SDK settings from SDKSettings.json if it exists and 2018-12-17 19:19:15 +00:00
ast-main.cpp [darwin] parse the SDK settings from SDKSettings.json if it exists and 2018-12-17 19:19:15 +00:00
backend-diagnostic.c
cc1-return-codes.c
clang-abi-compat.cpp Make test/Frontend/clang-abi-compat.cpp pass when the version goes to 8 2018-08-01 13:19:14 +00:00
compiler-options-dump.cpp Add a new driver mode to dump compiler feature and extension options. 2018-05-31 13:57:09 +00:00
cpp-output.c
darwin-eabi.c
darwin-version.c
dependency-gen-escaping.c Print correctly dependency paths on Windows 2018-09-13 14:27:32 +00:00
dependency-gen-extradeps-phony.c Fix emission of phony dependency targets when adding extra deps 2018-05-29 13:07:58 +00:00
dependency-gen-has-include.c Add a callback for `__has_include` and use it for dependency scanning. 2018-09-18 23:27:02 +00:00
dependency-gen-symlink.c Track skipped files in dependency scanning. 2018-05-01 23:59:33 +00:00
dependency-gen.c Print correctly dependency paths on Windows 2018-09-13 14:27:32 +00:00
dependency-generation-crash.c
diagnostics-option-names.c
diagnostics-order.c
disable-output.c
embed-bitcode.ll
exceptions.c
fixed_point_bit_widths.c [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals 2018-06-20 17:19:40 +00:00
fixed_point_conversions.c [Fixed Point Arithmetic] Refactor fixed point casts 2018-10-26 16:12:12 +00:00
fixed_point_declarations.c [Fixed Point Arithmetic] Fixed Point Constant 2018-08-06 16:42:37 +00:00
fixed_point_errors.c [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_errors.cpp [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_not_enabled.c [Fixed Point Arithmetic] Fix for bug where integer literals could be treated as fixed point literals 2018-07-17 14:58:49 +00:00
fixed_point_same_fbits.c [Fixed Point Arithmetic] Rename `-fsame-fbits` flag 2018-06-29 17:08:19 +00:00
fixed_point_to_bool.c [Fixed Point Arithmetic] Refactor fixed point casts 2018-10-26 16:12:12 +00:00
fixed_point_unknown_conversions.c [Fixed Point Arithmetic] Fixed Point to Boolean Cast 2018-10-23 17:55:35 +00:00
force-include-not-found.c
ftime-report-template-decl.cpp Improve checks in test/Frontend/ftime-report-template-decl.cpp 2018-04-23 18:05:35 +00:00
gnu-inline.c
gnu-mcount.c Always use __mcount on NetBSD. Some platforms don't provide _mcount. 2018-07-17 13:13:34 +00:00
hexagon-target-basic.c
iframework.c
include-duplicate-removal.c
int128.cpp
invalid-o-level.c
ir-support-codegen.ll
ir-support-errors.ll
ir-support.c
lit.local.cfg
macros.c
mfpmath.c
mips-long-double.c
noderef.c [Sema/Attribute] Check for noderef attribute 2018-12-06 01:05:54 +00:00
noderef.cpp [Sema/Attribute] Check for noderef attribute 2018-12-06 01:05:54 +00:00
noderef_on_non_pointers.m [Sema/Attribute] Check for noderef attribute 2018-12-06 01:05:54 +00:00
noderef_templates.cpp [Sema/Attribute] Check for noderef attribute 2018-12-06 01:05:54 +00:00
nostdlib-for-asmpp.s [frontend] Don't include the C++ stdlib for -x assembler-with-cpp 2018-06-28 23:23:45 +00:00
objc-bool-is-bool.m
opencl.cl [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
optimization-remark-analysis.c
optimization-remark-extra-analysis.c
optimization-remark-line-directive.c
optimization-remark-options.c
optimization-remark-with-hotness.c Fix tests for changed opt remarks format 2018-08-05 14:53:34 +00:00
optimization-remark.c
output-failures.c
plugin-annotate-functions.c
plugin-delayed-template.cpp
plugin-vs-debug-info.cpp
plugins.c
pp-only-no-editor-placeholders.c
preprocessed-input.i
preprocessed-output-macro-first-token.c
print-header-includes.c [clang-cl] Print /showIncludes to stderr, if used in combination with /E, /EP or /P 2018-05-04 15:58:31 +00:00
profile-sample-use-loc-tracking.c
region-pragmas.c
remove-file-on-signal.c
rewrite-includes-bom.c
rewrite-includes-cli-include.c
rewrite-includes-eof.c
rewrite-includes-filenotfound.c
rewrite-includes-header-cmd-line.c
rewrite-includes-invalid-hasinclude.c
rewrite-includes-line-markers.c
rewrite-includes-messages.c
rewrite-includes-missing.c
rewrite-includes-modules.c
rewrite-includes-warnings.c
rewrite-includes.c Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
rewrite-macros.c
source-col-map.c
stats-file.c
stdin.c
stdlang.c [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
system-header-line-directive-ms-lineendings.c
system-header-line-directive.c
system-header-prefix.c
trigraphs.cpp
undef.c
unknown-arg.c
unknown-pragmas.c
verify-directive.h
verify-fatal.c
verify-ignore-unexpected.c
verify-prefixes.c
verify-unknown-arg.c
verify.c
verify2.c
verify2.h
verify3.c
warning-mapping-1.c
warning-mapping-2.c
warning-mapping-3.c
warning-mapping-4.c
warning-mapping-5.c
warning-options.cpp
warning-stdlibcxx-darwin.cpp [frontend][darwin] warn_stdlibcxx_not_found: supress warning for preprocessed input 2018-12-06 22:45:58 +00:00
windows-exceptions.cpp [ADT] Normalize empty triple components 2018-08-08 22:23:57 +00:00
windows-nul.c
x86-target-cpu.c [X86] Split up -march=icelake to -client & -server 2018-04-10 18:58:26 +00:00
x86_64-nacl-types.cpp