Skip to content

[thread] Exposition-only formatting for private members#8175

Merged
tkoeppe merged 1 commit into
cplusplus:mainfrom
frederick-vs-ja:expos-thread
Apr 21, 2026
Merged

[thread] Exposition-only formatting for private members#8175
tkoeppe merged 1 commit into
cplusplus:mainfrom
frederick-vs-ja:expos-thread

Conversation

@frederick-vs-ja

@frederick-vs-ja frederick-vs-ja commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Towards #4702, #5940.

Affected sections and exposition-only identifiers:

[thread.jthread.class]

  • ssource

[atomics.ref.generic]

  • ptr

[util.smartptr.atomic.shared]

  • p

[util.smartptr.atomic.weak]

  • p

[thread.lock.guard]

  • pm

[thread.lock.scoped]

  • pm

[thread.lock.unique]

  • pm
  • owns

[thread.lock.shared]

  • pm
  • owns

[thread.sema.cnt]

  • counter

[thread.latch.class]

  • counter

[thread.barrier.class]

  • completion

[futures.future.error]

  • ec_

Drive-by changes:

[atomics.ref.float]

  • Use \placeholder for floating-point-type

@eisenwave eisenwave added the P2-Bug Presentational errors and omissions label Nov 6, 2025
@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Apr 20, 2026
@frederick-vs-ja

Copy link
Copy Markdown
Contributor Author

@tkoeppe Squashed and rebased.

Affected sections and exposition-only identifiers:

[thread.jthread.class]
- _`ssource`_

[atomics.ref.generic]
- _`ptr`_

[util.smartptr.atomic.shared]
- _`p`_

[util.smartptr.atomic.weak]
- _`p`_

[thread.lock.guard]
- _`pm`_

[thread.lock.scoped]
- _`pm`_

[thread.lock.unique]
- _`pm`_
- _`owns`_

[thread.lock.shared]
- _`pm`_
- _`owns`_

[thread.sema.cnt]
- _`counter`_

[thread.latch.class]
- _`counter`_

[thread.barrier.class]
- _`completion`_

[futures.future.error]
- _`ec_`_

Drive-by changes:

[atomics.ref.float]
- Use `\placeholder` for _`floating-point-type`_
@jensmaurer jensmaurer removed the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Apr 21, 2026

@jensmaurer jensmaurer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. More clarity which symbols are user-visible and which ones aren't.

@tkoeppe

tkoeppe commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Yes, this is nice. @jensmaurer Have you reviewed this carefully already?

@jensmaurer

jensmaurer commented Apr 21, 2026

Copy link
Copy Markdown
Member

I have scrolled over the diff. I'm pretty certain it just sprinkles \exposid across the board (and sometimes, removes \tcode), but of course I haven't checked whether anything was overlooked. Even if it were, we can fix afterwards once the bulk is in.

@tkoeppe

tkoeppe commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Yeah, OK. I'll also try to take a closer look before merging then.

@tkoeppe tkoeppe merged commit 106b0d1 into cplusplus:main Apr 21, 2026
2 checks passed
@frederick-vs-ja frederick-vs-ja deleted the expos-thread branch April 21, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2-Bug Presentational errors and omissions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants