Debian Codegraph @

debian/patches/unsupported-attributes

raw
1 Description: Remove unsupported annotations.
2 Forwarded: not-needed
3 Author: Filip Strömbäck <[email protected]>
4 --- a/include/private/base/SkTemplates.h
5 +++ b/include/private/base/SkTemplates.h
6 @@ -122,7 +122,7 @@
7 }
8
9 // Reallocates given a new count. Reallocation occurs even if new count equals old count.
10 - [[clang::reinitializes]]
11 + // [[clang::reinitializes]]
12 void reset(size_t count = 0) {
13 *this = AutoTArray(count);
14 }
15 @@ -210,7 +210,7 @@
16 }
17
18 /** Destroys previous objects in the array and default constructs count number of objects */
19 - [[clang::reinitializes]]
20 + // [[clang::reinitializes]]
21 void reset(int count) {
22 T* start = begin();
23 T* iter = end();
24 @@ -331,7 +331,7 @@
25 }
26
27 /** Resize the memory area pointed to by the current ptr without preserving contents. */
28 - [[clang::reinitializes]]
29 + // [[clang::reinitializes]]
30 T* reset(size_t count = 0) {
31 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
32 return this->get();
33 @@ -402,7 +402,7 @@
34 }
35
36 // doesn't preserve contents
37 - [[clang::reinitializes]]
38 + // [[clang::reinitializes]]
39 T* reset(size_t count) {
40 if (fPtr != fTStorage) {
41 sk_free(fPtr);