[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / padding_no_unique_address.cpp
blob4f26922c9450daaae572e0302726fa78ef0afc9b
1 // RUN: %clang_analyze_cc1 -std=c++14 -triple x86_64-linux-gnu -analyzer-checker=optin.performance -analyzer-config optin.performance.Padding:AllowedPad=2 -verify %s
3 class Empty {}; // no-warning
5 // expected-warning@+1{{Excessive padding in 'struct NoUniqueAddressWarn1' (6 padding}}
6 struct NoUniqueAddressWarn1 {
7 char c1;
8 [[no_unique_address]] Empty empty;
9 int i;
10 char c2;
13 // expected-warning@+1{{Excessive padding in 'struct NoUniqueAddressWarn2' (6 padding}}
14 struct NoUniqueAddressWarn2 {
15 char c1;
16 [[no_unique_address]] Empty e1, e2;
17 int i;
18 char c2;
21 struct NoUniqueAddressNoWarn1 {
22 char c1;
23 [[no_unique_address]] Empty empty;
24 char c2;
27 struct NoUniqueAddressNoWarn2 {
28 char c1;
29 [[no_unique_address]] Empty e1, e2;