Skip to content

Commit 5bc475b

Browse files
committed
[FOLD]
1 parent 687f0b0 commit 5bc475b

File tree

4 files changed

+1
-39
lines changed

4 files changed

+1
-39
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
enum {{#if isScoped}}class{{/if}}{{#if attributes}} {{>symbol/attributes symbol}}{{/if}} {{>symbol/name .~}}
1+
enum{{#if isScoped}} class{{/if}}{{#if attributes}} {{>symbol/attributes symbol}}{{/if}} {{>symbol/name .~}}
22
{{#if type}} : {{>type/declarator type}}{{/if}};

src/lib/AST/ASTVisitor.cpp

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,42 +1591,6 @@ populateAttributes(Info& I, Decl const* D)
15911591
break;
15921592
}
15931593
}
1594-
1595-
#if 0
1596-
if(D->hasAttr<DeprecatedAttr>())
1597-
addAttribute(I, AttributeKind::Deprecated);
1598-
1599-
if(D->hasAttr<UnusedAttr>())
1600-
addAttribute(I, AttributeKind::MaybeUnused);
1601-
1602-
if(D->hasAttr<WarnUnusedResultAttr>())
1603-
addAttribute(I, AttributeKind::Nodiscard);
1604-
1605-
if(D->hasAttr<NoReturnAttr>())
1606-
addAttribute(I, AttributeKind::Noreturn);
1607-
1608-
if(D->hasAttr<NoUniqueAddressAttr>())
1609-
addAttribute(I, AttributeKind::NoUniqueAddress);
1610-
#endif
1611-
1612-
#if 0
1613-
if constexpr (requires { I.Attributes; })
1614-
{
1615-
MRDOCS_CHECK_OR(D->hasAttrs());
1616-
for (Attr const* attr: D->getAttrs())
1617-
{
1618-
IdentifierInfo const* II = attr->getAttrName();
1619-
if (!II)
1620-
{
1621-
continue;
1622-
}
1623-
if (std::ranges::find(I.Attributes, II->getName()) == I.Attributes.end())
1624-
{
1625-
I.Attributes.emplace_back(II->getName());
1626-
}
1627-
}
1628-
}
1629-
#endif
16301594
}
16311595

16321596
void

test-files/golden-tests/symbols/function/attributes-2.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Declared in `&lt;attributes&hyphen;2&period;cpp&gt;`
2727
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
2828
----
2929
template&lt;class T&gt;
30-
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
3130
int
3231
f();
3332
----

test-files/golden-tests/symbols/function/attributes-2.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ <h3>Synopsis</h3>
3434
<pre>
3535
<code class="source-code cpp">
3636
template&lt;class T&gt;
37-
[[nodiscard]]
3837
int
3938
f();
4039
</code>

0 commit comments

Comments
 (0)