Skip to content

Commit 90b0b52

Browse files
committed
feat: add component Incomplete
1 parent 727b8bc commit 90b0b52

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/components/Incomplete.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
import { Aside } from "@astrojs/starlight/components";
3+
4+
interface Props {
5+
reason: string;
6+
}
7+
8+
const { reason } = Astro.props;
9+
---
10+
11+
<Aside title="This section is incomplete">
12+
Reason: {reason}
13+
</Aside>

src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { DR, DRList } from "@components/defect-report";
1313
import { Revision, RevisionBlock } from "@components/revision";
1414
import AutoCollapse from "@components/AutoCollapse.astro";
1515
import FlexTable from "@components/FlexTable.astro";
16+
import Incomplete from "@components/Incomplete.astro";
1617
import WG21PaperLink from "@components/WG21PaperLink.astro";
1718

1819
export {
@@ -35,5 +36,6 @@ export {
3536
RevisionBlock,
3637
AutoCollapse,
3738
FlexTable,
39+
Incomplete,
3840
WG21PaperLink,
3941
};

src/content/docs/cpp/language/basic_concepts/definition.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: Definitions and ODR
33
---
44

5-
import { Aside } from "@astrojs/starlight/components";
65
import { DR, DRList } from "@components/defect-report";
7-
import { Revision, RevisionBlock } from "@components/revision"
8-
import DocLink from "@components/DocLink.astro"
6+
import { Revision, RevisionBlock } from "@components/revision";
7+
import DocLink from "@components/DocLink.astro";
8+
import Incomplete from "@components/Incomplete.astro";
99

1010
_Definitions_ are <DocLink dest="/cpp/language/declarations">declarations</DocLink> that fully define the entity introduced by the declaration. Every declaration is a definition, except for the following:
1111

@@ -270,9 +270,7 @@ A function is odr-used in following cases:
270270
- A constructor (including default constructors) for a class is odr-used by the <DocLink dest="/cpp/language/initialization">initialization</DocLink> that selects it.
271271
- A destructor for a class is odr-used if it is <DocLink dest="/cpp/language/destructor" section="potentially-invoked-destructor">potentially invoked</DocLink>.
272272
273-
<Aside title="This section is incomplete">
274-
Reason: list of all situations where odr-use makes a difference
275-
</Aside>
273+
<Incomplete reason="list of all situations where odr-use makes a difference" />
276274
277275
## Defect reports
278276

0 commit comments

Comments
 (0)