[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / warnings-as-errors-plural.cpp
bloba14759da28415c153ec25cec06b6af574b7bd919
1 // RUN: clang-tidy %s -checks='-*,llvm-namespace-comment,clang-diagnostic*' -- 2>&1 \
2 // RUN: | FileCheck %s --check-prefix=CHECK-WARN -implicit-check-not='{{warning|error}}:'
3 // RUN: not clang-tidy %s -checks='-*,llvm-namespace-comment,clang-diagnostic*' \
4 // RUN: -warnings-as-errors='llvm-namespace-comment' -- 2>&1 \
5 // RUN: | FileCheck %s --check-prefix=CHECK-WERR -implicit-check-not='{{warning|error}}:'
6 // RUN: not clang-tidy %s -checks='-*,llvm-namespace-comment,clang-diagnostic*' \
7 // RUN: -warnings-as-errors='llvm-namespace-comment' -quiet -- 2>&1 \
8 // RUN: | FileCheck %s --check-prefix=CHECK-WERR-QUIET -implicit-check-not='{{warning|error}}:'
10 namespace j {
12 // CHECK-WARN: warning: namespace 'j' not terminated with a closing comment [llvm-namespace-comment]
13 // CHECK-WERR: error: namespace 'j' not terminated with a closing comment [llvm-namespace-comment,-warnings-as-errors]
14 // CHECK-WERR-QUIET: error: namespace 'j' not terminated with a closing comment [llvm-namespace-comment,-warnings-as-errors]
16 namespace k {
18 // CHECK-WARN: warning: namespace 'k' not terminated with a closing comment [llvm-namespace-comment]
19 // CHECK-WERR: error: namespace 'k' not terminated with a closing comment [llvm-namespace-comment,-warnings-as-errors]
20 // CHECK-WERR-QUIET: error: namespace 'k' not terminated with a closing comment [llvm-namespace-comment,-warnings-as-errors]
22 // CHECK-WARN-NOT: treated as
23 // CHECK-WERR: 2 warnings treated as errors
24 // CHECK-WERR-QUIET-NOT: treated as