Commit bcbe9d6
authored
[Clang] Do not allow
Previously, `[[clang::lifetimebound]]` applied to an explicit object
member function did nothing and was silently ignored.
Now issue the error diagnostic `'lifetimebound' attribute cannot be
applied; explicit object member function has no implicit object
parameter`[[clang::lifetimebound]] on explicit object member functions (#96113)1 parent de5ea2d commit bcbe9d6
File tree
4 files changed
+17
-5
lines changed- clang
- docs
- include/clang/Basic
- lib/Sema
- test/SemaCXX
4 files changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10066 | 10066 | | |
10067 | 10067 | | |
10068 | 10068 | | |
10069 | | - | |
10070 | | - | |
| 10069 | + | |
| 10070 | + | |
| 10071 | + | |
10071 | 10072 | | |
10072 | 10073 | | |
10073 | 10074 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6939 | 6939 | | |
6940 | 6940 | | |
6941 | 6941 | | |
6942 | | - | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
| 6947 | + | |
| 6948 | + | |
| 6949 | + | |
6943 | 6950 | | |
6944 | | - | |
| 6951 | + | |
6945 | 6952 | | |
6946 | 6953 | | |
6947 | 6954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments