llvm/clang/test/Driver/cxx-operator-names.cpp
Markus Böck 9833b57981 [clang][driver] Add -foperator-names
This patch adds the command line option -foperator-names which acts as the opposite of -fno-operator-names. With this command line option it is possible to reenable C++ operator keywords on the command line if -fno-operator-names had previously been passed.

Differential Revision: https://reviews.llvm.org/D103749
2021-06-10 17:01:35 +02:00

8 lines
307 B
C++

// RUN: %clang -### -S -foperator-names -fno-operator-names %s 2>&1 | \
// RUN: FileCheck -check-prefix=CHECK-1 %s
// CHECK-1: "-fno-operator-names"
// RUN: %clang -### -S -fno-operator-names -foperator-names %s 2>&1 | \
// RUN: FileCheck -check-prefix=CHECK-2 %s
// CHECK-2-NOT: "-fno-operator-names"