mirror-llvm-project/clang-tools-extra/test/clang-tidy/checkers/custom/query.cpp
Congcong Cai 584af2f89e
reapply "[clang-tidy] support query based custom check" (#159547)
reapply #131804 and #159289
Fixed cmake link issue.

---------

Co-authored-by: DeNiCoN <denicon1234@gmail.com>
Co-authored-by: Baranov Victor <bar.victor.2002@gmail.com>
2025-09-19 21:47:57 +08:00

7 lines
355 B
C++

// RUN: %check_clang_tidy %s custom-* %t --config-file=%S/Inputs/clang-tidy.yml
extern long E;
// CHECK-MESSAGES: [[@LINE-1]]:8: warning: use 'int' instead of 'long' [custom-test-diag-level]
// CHECK-MESSAGES: [[@LINE-2]]:1: note: declaration of 'long'
static int S;
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: find static variable [custom-test-let-bind]