llvm-project/clang-tools-extra/test/clang-tidy/diagnostic.cpp

6 lines
278 B
C++

// RUN: clang-tidy %s -- -fan-unknown-option | FileCheck -check-prefix=CHECK1 %s
// RUN: clang-tidy %s.nonexistent.cpp -- | FileCheck -check-prefix=CHECK2 %s
// CHECK1: warning: unknown argument: '-fan-unknown-option'
// CHECK2: warning: error reading '{{.*}}.nonexistent.cpp'