Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
refs/tags/llvmorg-12.0.0-rc3
/
.
/
clang-tools-extra
/
test
/
clang-tidy
/
checkers
/
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]