Sign in
cobalt
/
cobalt
/
e83fce97d7405b0b5e569d961aa431b1112ac6ac
/
.
/
src
/
third_party
/
llvm-project
/
clang-tools-extra
/
test
/
clang-tidy
/
cppcoreguidelines-pro-type-const-cast.cpp
blob: 2d32e13723abf8308b6de7e84ec03c594b8971ee [
file
] [
log
] [
blame
]
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-const-cast %t
const
int
*
i
;
int
*
j
;
void
f
()
{
j
=
const_cast
<
int
*>(
i
);
}
// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: do not use const_cast [cppcoreguidelines-pro-type-const-cast]