Skip to content

Commit b7e1258

Browse files
aloisklinkshafik
andcommitted
fixup! [clang] Ignore GCC 11 [[malloc(x)]] attribute
Support bugprone-argument-comment format. Co-authored-by: Shafik Yaghmour <[email protected]>
1 parent 02a153d commit b7e1258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,8 +1629,8 @@ def IFunc : Attr, TargetSpecificAttr<TargetELF> {
16291629

16301630
def Restrict : InheritableAttr {
16311631
let Spellings = [Declspec<"restrict">, GCC<"malloc">];
1632-
let Args = [IdentifierArgument<"Deallocator", /*opt*/ 1>,
1633-
ParamIdxArgument<"DeallocatorPtrArgIndex", /*opt*/ 1>];
1632+
let Args = [IdentifierArgument<"Deallocator", /*opt=*/ 1>,
1633+
ParamIdxArgument<"DeallocatorPtrArgIndex", /*opt=*/ 1>];
16341634
let Subjects = SubjectList<[Function]>;
16351635
let Documentation = [RestrictDocs];
16361636
}

0 commit comments

Comments
 (0)