Skip to content

Commit

Permalink
fixup! [clang] Ignore GCC 11 [[malloc(x)]] attribute
Browse files Browse the repository at this point in the history
Support bugprone-argument-comment format.

Co-authored-by: Shafik Yaghmour <shafik@users.noreply.github.com>
  • Loading branch information
aloisklink and shafik committed Nov 1, 2023
1 parent 02a153d commit b7e1258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Basic/Attr.td
Expand Up @@ -1629,8 +1629,8 @@ def IFunc : Attr, TargetSpecificAttr<TargetELF> {

def Restrict : InheritableAttr {
let Spellings = [Declspec<"restrict">, GCC<"malloc">];
let Args = [IdentifierArgument<"Deallocator", /*opt*/ 1>,
ParamIdxArgument<"DeallocatorPtrArgIndex", /*opt*/ 1>];
let Args = [IdentifierArgument<"Deallocator", /*opt=*/ 1>,
ParamIdxArgument<"DeallocatorPtrArgIndex", /*opt=*/ 1>];
let Subjects = SubjectList<[Function]>;
let Documentation = [RestrictDocs];
}
Expand Down

0 comments on commit b7e1258

Please sign in to comment.