| // RUN: %check_clang_tidy %s cert-dcl58-cpp %t -- -- -std=c++1z -I %S/Inputs/Headers |
| #include "system-header-simulation.h" |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: modification of 'posix' namespace can result in undefined behavior [cert-dcl58-cpp] |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: modification of 'std' namespace can |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: modification of 'posix' namespace |
| struct is_error_code_enum<MyError> : std::true_type {}; |
| void swap<MyError>(MyError &a, MyError &b); |
| // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: modification of 'std' namespace |
| struct is_error_code_enum<MyError2> : std::true_type {}; |