and add a new option --driver-mode= to control it explicitly. The CCCIsCXX and CCCIsCPP flags were non-overlapping, i.e. there are currently really three modes that Clang can run in: gcc, g++ or cpp, so it makes sense to represent them as an enum. Having a command line flag to control it helps testing. llvm-svn: 186605
15 lines
474 B
C
15 lines
474 B
C
// RUN: %clang --help | FileCheck %s -check-prefix=HELP
|
|
// HELP: isystem
|
|
// HELP-NOT: ast-dump
|
|
// HELP-NOT: driver-mode
|
|
|
|
// RUN: %clang --help-hidden | FileCheck %s -check-prefix=HELP-HIDDEN
|
|
// HELP-HIDDEN: driver-mode
|
|
|
|
// RUN: %clang -dumpversion | FileCheck %s -check-prefix=DUMPVERSION
|
|
// DUMPVERSION: 4.2.1
|
|
|
|
// RUN: %clang -print-search-dirs | FileCheck %s -check-prefix=PRINT-SEARCH-DIRS
|
|
// PRINT-SEARCH-DIRS: programs: ={{.*}}
|
|
// PRINT-SEARCH-DIRS: libraries: ={{.*}}
|