mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 22:26:05 +00:00

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
8 lines
307 B
C++
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"
|