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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Modules
/
Inputs
/
diag_pragma.h
blob
59c73ea756e0f82c69a8dee5ae6e727b4bb089d7
1
#define DIAG_PRAGMA_MACRO 1
2
3
#pragma clang diagnostic ignored
"-Wparentheses"
4
5
#ifdef __cplusplus
6
template
<
typename T
>
const char
*
f
(
T t
) {
7
return
"foo"
+
t
;
8
}
9
#pragma clang diagnostic ignored
"-Wstring-plus-int"
10
template
<
typename T
>
const char
*
g
(
T t
) {
11
return
"foo"
+
t
;
12
}
13
#endif