File tree Expand file tree Collapse file tree 5 files changed +12
-0
lines changed
share/mrdocs/addons/generator/common/partials/symbol/signature Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 66//
77// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
88// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
9+ // Copyright (c) 2024 Alan de Freitas (alandefreitas@gmail.com)
910//
1011// Official repository: https://github.com/cppalliance/mrdocs
1112//
@@ -58,6 +59,8 @@ struct FieldInfo
5859
5960 bool HasNoUniqueAddress = false ;
6061
62+ std::vector<std::string> Attributes;
63+
6164 // --------------------------------------------
6265
6366 explicit FieldInfo (SymbolID ID) noexcept
Original file line number Diff line number Diff line change 66//
77// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
88// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
9+ // Copyright (c) 2024 Alan de Freitas (alandefreitas@gmail.com)
910//
1011// Official repository: https://github.com/cppalliance/mrdocs
1112//
@@ -166,6 +167,8 @@ struct FunctionInfo
166167 StorageClassKind StorageClass = StorageClassKind::None;
167168 ReferenceKind RefQualifier = ReferenceKind::None;
168169
170+ std::vector<std::string> Attributes;
171+
169172 // --------------------------------------------
170173
171174 explicit FunctionInfo (SymbolID ID) noexcept
Original file line number Diff line number Diff line change 1+ {{ #if attributes }} [{{ join " , " attributes }} ]
2+ {{ /if }}
13{{ #if isMutable }} mutable
24{{ /if ~}}
35{{> type/declarator-prefix type }} {{> symbol/name symbol ~}}
Original file line number Diff line number Diff line change 22{{ /if ~}}
33{{ #if isFriend }} friend
44{{ /if ~}}
5+ {{ #if attributes }}{{ #unless isFriend }} [{{ join " , " attributes }} ]
6+ {{ /unless }}{{ /if ~}}
57{{ #if constexprKind }} {{ constexprKind }}
68{{ /if ~}}
79{{ #if storageClass }} {{ storageClass }}
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ tag_invoke(
179179 {
180180 io.map (" requires" , I.Requires .Written );
181181 }
182+ io.map (" attributes" , dom::LazyArray (I.Attributes ));
182183 }
183184 if constexpr (T::isTypedef ())
184185 {
@@ -222,6 +223,7 @@ tag_invoke(
222223 {
223224 io.map (" bitfieldWidth" , I.BitfieldWidth .Written );
224225 }
226+ io.map (" attributes" , dom::LazyArray (I.Attributes ));
225227 }
226228 if constexpr (T::isSpecialization ())
227229 {}
You can’t perform that action at this time.
0 commit comments