☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
clang-tools-extra
/
test
/
clang-tidy
/
infrastructure
/
deduplication.cpp
☽
☼
clang-tools-extra/test/clang-tidy/infrastructure/deduplication.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %check_clang_tidy %s google-explicit-constructor %t
2
3
template<typename T>
4
struct A { A(T); };
5
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
6
7
void f() {
8
A<int> a(0);
9
A<double> b(0);
10
}