☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
clang-tools-extra
/
test
/
clang-tidy
/
checkers
/
bugprone
/
assignment-in-if-condition-cxx20.cpp
☽
☼
clang-tools-extra/test/clang-tidy/checkers/bugprone/assignment-in-if-condition-cxx20.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %check_clang_tidy -std=c++20 %s bugprone-assignment-in-if-condition %t
2
3
void testRequires() {
4
if constexpr (requires(int &a) { a = 0; }) {
5
}
6
}