llvm-project/clang/test/Driver
Chad Rosier 706c235013 [driver] In general, the driver claims redundant args and uses the last arg.
However, the '-x' option has special handling and wasn't following this
paradigm.  Fix it to do so by claiming the arg as we parse the '-x' option.
rdar://11203340

llvm-svn: 154231
2012-04-07 00:01:31 +00:00
..
Inputs Add the critical crtbegin.o files necessary for any of the tests in 2012-02-26 10:46:17 +00:00
Wp-args.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Xarch.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Xlinker-args.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
altivec.cpp -arch is a darwin-only feature, use -target instead to make the linux buildbots happy again. 2012-03-14 01:17:52 +00:00
analyze.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
apple-kext-i386.cpp Simplify test a bit now that it's not actually running cc1plus. 2012-04-04 14:43:40 +00:00
apple-kext-mkernel.c [driver] Testcase for r153469, r153470, and r153478. 2012-03-26 22:43:28 +00:00
arc-exceptions.m Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
arc.c [driver] Emit an error when trying to use ARC on macosx earlier than 10.6 2012-02-29 03:43:52 +00:00
arch.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
arclite-link.c Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, 2012-03-06 20:05:56 +00:00
arm-darwin-builtin.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
arm-mfpmath.c [driver] When using the -mfpmath= option, add an error message when trying to 2012-04-04 22:13:40 +00:00
arm-mfpu.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
asan.c Add a flag -fthread-sanitizer. 2012-03-01 22:27:08 +00:00
ast.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
at_file.c Implement support for reading arguments specified in a file with @file. If 2010-07-19 15:20:12 +00:00
at_file.c.args Implement support for reading arguments specified in a file with @file. If 2010-07-19 15:20:12 +00:00
bindings.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
cc-log-diagnostics.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
cc-print-options.c Add -no-canonical-prefixes to tests which assert on the name of the 2011-04-13 22:28:36 +00:00
ccc-add-args.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
ccc-host-triple-no-integrated-as.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
cfi.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
clang-c-as-cxx.c PR5803: clang++: Treat untyped 'C' inputs as C++. 2010-02-17 20:32:58 +00:00
clang-exception-flags.cpp Add a test case that would have caught the bug fixed in r126640. 2011-02-28 07:38:09 +00:00
clang-g-opts.c Don't produce debug info when given -g. Fixes PR6529. 2010-03-07 04:46:18 +00:00
clang-translation.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
clang_cpp.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
clang_f_opts.c Move all of the logic for __DEPRECATED to the driver based on comments 2011-04-23 19:48:40 +00:00
clang_wrapv_opts.c Add my test case for r128353. I think this is the last test case to fail 2011-03-27 21:03:41 +00:00
cpath.c test/Driver/cpath.c: Escape a few args that contain %{pathsep}. 2012-03-25 03:42:26 +00:00
cpp-precomp.c [driver] Put -cpp-precomp and -no-cpp-precomp under the clang_ignored_f_group. 2012-03-26 23:36:04 +00:00
darwin-as.c Update test for r151288 2012-02-23 22:12:53 +00:00
darwin-cc.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-debug-flags.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-dsymutil.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-iphone-defaults.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-ld.c Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, 2012-03-06 20:05:56 +00:00
darwin-objc-defaults.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-objc-gc.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-objc-options.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-verify-debug.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-version.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
darwin-xarch.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
debug-options-as.c test/Driver/debug-options*.c: Tweak r147819 to split out another cc1as-sensitive test. gcc driver is invoked for assembling on cygming. 2012-01-12 06:15:01 +00:00
debug-options.c [driver] Add support for -g2 and -ggdb debug flags. 2012-02-28 20:49:04 +00:00
debug.c test/Driver/debug.c: Mark this as "REQUIRES: shell". 2011-10-22 11:28:32 +00:00
default-toolchain.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
diagnostics.c Remove trailing whitespace (especially after a \ which should be trailing) 2012-03-14 01:23:41 +00:00
dragonfly.c Make driver tests more resilient to output trees containing symlinks -- 2012-01-24 01:55:55 +00:00
dwarf2-cfi-asm.c Implement -fno-dwarf2-cfi-asm on linux too. 2012-03-08 14:39:55 +00:00
emit-llvm.c Use ld directly on linux. Changes from the previous try: 2010-11-07 20:14:31 +00:00
exceptions.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
fast-math.c Fix PR11685 by implementing -ffast-math and its various friends in the 2012-01-02 14:19:45 +00:00
flags.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
fno-pic.c Honor -fno-pic, -fno-PIC, -fno-pie, -fno-PIE. 2012-04-04 23:00:14 +00:00
frame-pointer.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
freebsd.c Skip freebsd driver test when ppc32/ppc64 targets are not configured. 2012-02-04 23:15:59 +00:00
gcc-toolchain.cpp Skip testing the crtbegin.o, and resume using a single variable for the 2012-02-21 22:21:50 +00:00
gcc_forward.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
gnu-runtime.m rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
hello.c test/Driver/hello.c: Tweak for cygming. 2011-03-16 13:51:46 +00:00
immediate-options.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
index-header-map.c Introduce the "-index-header-map" option, to give special semantics 2011-07-28 04:45:53 +00:00
invalid-o-level.c Invalid O levels on the command line no longer have a confusing error. 2012-02-06 00:40:31 +00:00
ios-simulator-arcruntime.c Revert r148249: "Make the auto-detection hack for the iOS simulator set the target triple correctly." 2012-01-26 03:37:03 +00:00
le32-unknown-nacl.cpp Define __LITTLE_ENDIAN__ for le32, since "le" stands for little endian. 2012-03-29 00:05:59 +00:00
linker-opts.c test/Driver/linker-opts.c: Mark as XFAIL:cygming, using gcc linker driver. It should be aware of LIBRARY_PATH. 2012-03-16 05:31:24 +00:00
linux-header-search.cpp Okay, makes sense to change all the occurences to match clang.EXE. 2012-02-26 14:55:10 +00:00
linux-ld.c MIPS: Provide a correct path to the dynamic linker when build for MIPS 64-bit targets. 2012-04-06 20:14:27 +00:00
lto.c Driver: Support invoking Clang on .ll or .bc inputs. 2010-06-07 23:28:45 +00:00
m_and_mm.c Driver: M and MM should be grouped together, <rdar://problem/8744831>. 2010-12-08 21:33:40 +00:00
mg.c Implement -MG. Fixes PR9613 2011-07-12 19:35:15 +00:00
mips-as.c MIPS: Pass -EB/-EL argument to the assembler according to selected endian when compile for MIPS targets. 2012-04-06 19:15:24 +00:00
mips-float.c MIPS: Move tests check float ABI macros definitions to the more appropriate place. 2012-04-06 17:51:49 +00:00
mno-global-merge.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
modules.m Add a test for the driver-level -fmodules/-fno-modules flags. 2012-01-03 21:04:31 +00:00
modules.mm In the driver, -fmodules enables modules for C/Objective-C but one 2012-01-18 15:19:58 +00:00
no-objc-arr.m [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00
no-sibling-calls.c Add support for -fno-optimize-sibling-calls. Currently only implemented in the 2012-01-23 08:29:12 +00:00
noexecstack.c Fix this test on machines that don't run clang -cc1as when asked to assemble. 2011-06-23 05:38:06 +00:00
noinline.c [frontend] Fix how the frontend handles -fno-inline. AFAIK clang now matches 2012-03-15 22:31:42 +00:00
nostdincxx.cpp XFAIL the -nostdinc++ test on Windows; it doesn't look like we even have the notion of separate C and C++ paths there 2010-03-24 20:45:20 +00:00
nostdlib.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
nostdlibinc.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
objc++-cpp-output.mm Add support of -x objc-cpp-output, -x objc++-cpp-output to the Driver. 2011-08-13 23:13:37 +00:00
objc-cpp-output.m Add support of -x objc-cpp-output, -x objc++-cpp-output to the Driver. 2011-08-13 23:13:37 +00:00
openbsd.c Make driver tests more resilient to output trees containing symlinks -- 2012-01-24 01:55:55 +00:00
option-aliases.c Driver: Change Option parsing to always create arguments referring to unaliased 2010-06-09 22:44:34 +00:00
output-file-cleanup.c Un-XFAIL this test on Darwin, it reportedly passes now. 2011-11-21 21:56:51 +00:00
parsing.c Remove extraneous whitespace. 2012-01-31 21:45:04 +00:00
phases.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
prefixed-tools.c Revert part of r148839 and keep DefaultTargetTriple in the form adjusted 2012-02-22 19:15:16 +00:00
preprocessor.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
pth.c Make driver tests more resilient to output trees containing symlinks -- 2012-01-24 01:55:55 +00:00
qa_override.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
redundant-args.c [driver] In general, the driver claims redundant args and uses the last arg. 2012-04-07 00:01:31 +00:00
redzone.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
rewrite-legacy-objc.m Use -rewrite-legacy-objc as clang argument for translating 2012-04-02 15:59:19 +00:00
rewrite-objc.m modern objc translator. Add more 2012-04-04 18:50:28 +00:00
stackrealign.c Stack realignment is a tristate. Add -mno-stackrealign to turn off all stack 2011-12-06 03:33:03 +00:00
std.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
std.cpp Add support for -std=gnu90 and -std=c++03, for compatibility with modern gcc. 2011-10-14 00:34:28 +00:00
sysroot-flags.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
sysroot.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
target.c test/Driver/target.c: Relax expression for "gcc.exe" on win32. 2012-02-01 15:16:22 +00:00
tsan.c Add a flag -fthread-sanitizer. 2012-03-01 22:27:08 +00:00
unknown-arg.c [driver] Do emit the diagnostics when CompilerInvocation::CreateFromArgs() fails. 2012-01-25 20:00:43 +00:00
unknown-gcc-arch.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
working-directory.c Adding a test case for the working-directory fix 2012-02-21 00:56:50 +00:00
x86_features.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00