2017-05-24 02:39:08 +08:00
|
|
|
// RUN: %clang --autocomplete=-fsyn | FileCheck %s -check-prefix=FSYN
|
|
|
|
// FSYN: -fsyntax-only
|
|
|
|
// RUN: %clang --autocomplete=-s | FileCheck %s -check-prefix=STD
|
|
|
|
// STD: -std={{.*}}-stdlib=
|
2017-06-22 00:50:38 +08:00
|
|
|
// RUN: %clang --autocomplete=foo | FileCheck %s -check-prefix=FOO
|
|
|
|
// FOO-NOT: foo
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-stdlib=,l | FileCheck %s -check-prefix=STDLIB
|
|
|
|
// STDLIB: libc++ libstdc++
|
|
|
|
// RUN: %clang --autocomplete=-stdlib=, | FileCheck %s -check-prefix=STDLIBALL
|
|
|
|
// STDLIBALL: libc++ libstdc++ platform
|
|
|
|
// RUN: %clang --autocomplete=-meabi,d | FileCheck %s -check-prefix=MEABI
|
|
|
|
// MEABI: default
|
|
|
|
// RUN: %clang --autocomplete=-meabi, | FileCheck %s -check-prefix=MEABIALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// MEABIALL: 4 5 default gnu
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-cl-std=,CL2 | FileCheck %s -check-prefix=CLSTD
|
|
|
|
// CLSTD: CL2.0
|
|
|
|
// RUN: %clang --autocomplete=-cl-std=, | FileCheck %s -check-prefix=CLSTDALL
|
|
|
|
// CLSTDALL: cl CL cl1.1 CL1.1 cl1.2 CL1.2 cl2.0 CL2.0
|
|
|
|
// RUN: %clang --autocomplete=-fno-sanitize-coverage=,f | FileCheck %s -check-prefix=FNOSANICOVER
|
|
|
|
// FNOSANICOVER: func
|
|
|
|
// RUN: %clang --autocomplete=-fno-sanitize-coverage=, | FileCheck %s -check-prefix=FNOSANICOVERALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FNOSANICOVERALL: 8bit-counters bb edge func indirect-calls inline-8bit-counters no-prune trace-bb trace-cmp trace-div trace-gep trace-pc trace-pc-guard
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-ffp-contract=, | FileCheck %s -check-prefix=FFPALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FFPALL: fast off on
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-flto=, | FileCheck %s -check-prefix=FLTOALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FLTOALL: full thin
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-fveclib=, | FileCheck %s -check-prefix=FVECLIBALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FVECLIBALL: Accelerate none SVML
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-fshow-overloads=, | FileCheck %s -check-prefix=FSOVERALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FSOVERALL: all best
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-fvisibility=, | FileCheck %s -check-prefix=FVISIBILITYALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// FVISIBILITYALL: default hidden
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-mfloat-abi=, | FileCheck %s -check-prefix=MFLOATABIALL
|
2017-06-23 23:37:52 +08:00
|
|
|
// MFLOATABIALL: hard soft softfp
|
2017-06-21 00:31:31 +08:00
|
|
|
// RUN: %clang --autocomplete=-mthread-model, | FileCheck %s -check-prefix=MTHREADMODELALL
|
|
|
|
// MTHREADMODELALL: posix single
|
2017-06-24 01:05:50 +08:00
|
|
|
// RUN: %clang --autocomplete=-mrelocation-model, | FileCheck %s -check-prefix=MRELOCMODELALL
|
|
|
|
// MRELOCMODELALL: dynamic-no-pic pic ropi ropi-rwpi rwpi static
|
2017-07-09 01:48:59 +08:00
|
|
|
// RUN: %clang --autocomplete=-mrelocation-mode | FileCheck %s -check-prefix=MRELOCMODEL_CLANG
|
|
|
|
// MRELOCMODEL_CLANG-NOT: -mrelocation-model
|
|
|
|
// RUN: %clang --autocomplete=#-mrelocation-mode | FileCheck %s -check-prefix=MRELOCMODEL_CC1
|
|
|
|
// MRELOCMODEL_CC1: -mrelocation-model
|
2017-07-16 23:07:20 +08:00
|
|
|
// RUN: %clang --autocomplete=-Wma | FileCheck %s -check-prefix=WARNING
|
|
|
|
// WARNING: -Wmacro-redefined -Wmain -Wmain-return-type -Wmalformed-warning-check -Wmany-braces-around-scalar-init -Wmax-unsigned-zero
|
|
|
|
// RUN: %clang --autocomplete=-Wnoinvalid-pp- | FileCheck %s -check-prefix=NOWARNING
|
|
|
|
// NOWARNING: -Wnoinvalid-pp-token
|