1// RUN: pp-trace -callbacks 'File*,Macro*,-MacroUndefined' %s -- | FileCheck %s
2// RUN: pp-trace -callbacks ' File* , Macro* , -MacroUndefined ' %s -- | FileCheck %s
3// RUN: not pp-trace -callbacks '[' %s -- 2>&1 | FileCheck --check-prefix=INVALID %s
4
5#define M 1
6int i = M;
7#undef M
8
9// CHECK: ---
10// CHECK: - Callback: FileChanged
11// CHECK: - Callback: MacroDefined
12// CHECK: - Callback: MacroExpands
13// CHECK-NOT: - Callback: MacroUndefined
14// CHECK-NOT: - Callback: EndOfMainFile
15// CHECK: ...
16
17// INVALID: error: invalid glob pattern, unmatched '['
18

source code of clang-tools-extra/test/pp-trace/pp-trace-filter.cpp