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
/
Tooling
/
Inputs
/
clang-diff-basic-src.cpp
blob
8f15232916d3d23e7895eb24ebf48ac45b36e3ae
1
namespace
src
{
2
3
void
foo
() {
4
int
x
=
321
;
5
}
6
7
void
main
() {
foo
(); };
8
9
const char
*
a
=
"foo"
;
10
11
typedef
unsigned int
nat
;
12
13
int
p
=
1
*
2
*
3
*
4
;
14
int
squared
=
p
*
p
;
15
16
class
X
{
17
const char
*
foo
(
int
i
) {
18
if
(
i
==
0
)
19
return
"foo"
;
20
return
0
;
21
}
22
23
public
:
24
X
(){};
25
26
int
id
(
int
i
) {
return
i
; }
27
};
28
}
29
30
void
m
() {
int
x
=
0
+
0
+
0
; }
31
int
um
=
1
*
2
+
3
;
32
33
void
f1
() {{ (
void
)
__func__
;;; }}