llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/invalid-command-line.cpp

5 lines
274 B
C++

// RUN: not clang-tidy --invalid-arg 2>&1 | FileCheck %s
// CHECK: error: [CommonOptionsParser]: clang-tidy{{(\.exe)?}}: Unknown command line argument '--invalid-arg'. Try: 'clang-tidy{{(\.exe)?}} --help'
// CHECK-NEXT: clang-tidy{{(\.exe)?}}: Did you mean '--extra-arg'?