[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / duplicate-conflicted-fixes-of-alias-checkers.cpp
blob67ef3f39522621fd50b09021035fe3188f8db1bf
1 // RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-member-init,hicpp-member-init,modernize-use-emplace,hicpp-use-emplace %t -- \
2 //// RUN: -config='{CheckOptions: [ \
3 //// RUN: {key: cppcoreguidelines-pro-type-member-init.UseAssignment, value: true}, \
4 //// RUN: ]}'
6 class Foo {
7 public:
8 Foo() : _num1(0)
9 // CHECK-MESSAGES: warning: constructor does not initialize these fields: _num2 [cppcoreguidelines-pro-type-member-init,hicpp-member-init]
10 // CHECK-MESSAGES: note: cannot apply fix-it because an alias checker has suggested a different fix-it; please remove one of the checkers ('cppcoreguidelines-pro-type-member-init', 'hicpp-member-init') or ensure they are both configured the same
12 _num1 = 10;
15 int use_the_members() const {
16 return _num1 + _num2;
19 private:
20 int _num1;
21 int _num2;
22 // CHECK-FIXES: _num2;