1// RUN: clang-tidy -checks='-*,modernize-use-override' \
2// RUN: -config='{ExtraArgs: ["-DTEST4"], ExtraArgsBefore: ["-DTEST1"]}' \
3// RUN: -extra-arg=-DTEST3 -extra-arg-before=-DTEST2 %s -- -v 2>&1 \
4// RUN: | FileCheck -implicit-check-not='{{warning:|error:}}' %s
5
6// CHECK: {{^}}clang Invocation:{{$}}
7// CHECK-NEXT: {{"-D" "TEST1" .*"-D" "TEST2" .*"-D" "TEST3" .*"-D" "TEST4"}}
8

source code of clang-tools-extra/test/clang-tidy/infrastructure/extra-args.cpp