1// RUN: not clang-query -c foo -c bar %s -- | FileCheck %s
2// RUN: not clang-query -f %S/Inputs/foo.script %s -- | FileCheck %s
3// RUN: not clang-query -f %S/Inputs/nonexistent.script %s -- 2>&1 | FileCheck --check-prefix=CHECK-NONEXISTENT %s
4// RUN: not clang-query -c 'file %S/Inputs/nonexistent.script' %s -- 2>&1 | FileCheck --check-prefix=CHECK-NONEXISTENT-FILEQUERY %s
5// RUN: not clang-query -c foo -f foo %s -- 2>&1 | FileCheck --check-prefix=CHECK-BOTH %s
6
7// CHECK: unknown command: foo
8// CHECK-NOT: unknown command: bar
9
10// CHECK-NONEXISTENT: cannot open {{.*}}nonexistent.script
11// CHECK-NONEXISTENT-FILEQUERY: cannot open {{.*}}nonexistent.script
12// CHECK-BOTH: cannot specify both -c and -f
13

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of clang-tools-extra/test/clang-query/errors.c