Skip to content

Commit 82e6bdb

Browse files
committed
!fixup add attr docs.
1 parent c3b6943 commit 82e6bdb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9242,3 +9242,14 @@ Declares that a function potentially allocates heap memory, and prevents any pot
92429242
of ``nonallocating`` by the compiler.
92439243
}];
92449244
}
9245+
9246+
def ValueTypeDocs : Documentation {
9247+
let Category = DocCatDecl;
9248+
let Content = [{
9249+
The ``value_type`` attribute can be used to mark user-defined types as 'value
9250+
types'. When objects of value types are passed by-value to functions, the
9251+
argument must be the only value referencing the passed object. This allows the
9252+
optimizer to assume that no other pointers may alias the object when it is
9253+
passed indirectly to a function..
9254+
}];
9255+
}

0 commit comments

Comments
 (0)