repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[DFAJumpThreading] Remove incoming StartBlock from all phis when unfolding select...
[llvm-project.git]
/
clang-tools-extra
/
test
/
clang-tidy
/
infrastructure
/
duplicate-reports.cpp
blob
c9d48d68a4c6243f7cefab97f9163baee218c9ec
1
// RUN: %check_clang_tidy %s cert-err09-cpp,cert-err61-cpp %t -- -- -fexceptions
2
3
void
alwaysThrows
() {
4
int
ex
=
42
;
5
// CHECK-MESSAGES: warning: throw expression should throw anonymous temporary values instead [cert-err09-cpp,cert-err61-cpp]
6
throw
ex
;
7
}
8
9
void
doTheJob
() {
10
try
{
11
alwaysThrows
();
12
}
catch
(
int
&) {
13
}
14
}