llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/nolintbeginend-error-within-include.cpp
Salman Javed 722e705f72 Revert 9b944c184396ce55a3ad608779cc326ba12c9ee3 with fixes
This reintroduces c0687e1984a82925918c874b7bb68ad34c32aed0 (Add support
for `NOLINTBEGIN` ... `NOLINTEND` comments) but with fixes to the tests.
2021-09-29 08:00:45 -04:00

9 lines
364 B
C++

// RUN: %check_clang_tidy %s google-explicit-constructor %t -- --header-filter=.* -system-headers -- -isystem %S/Inputs/nolintbeginend
#include "error_in_include.inc"
// CHECK-MESSAGES: error_in_include.inc:1:11: warning: single-argument constructors must be marked explicit
#include "nolint_in_include.inc"
// CHECK-MESSAGES: Suppressed 1 warnings (1 NOLINT).