Skip to content

The return value of column() obtained from std::source_location::current() should be documented #78657

@frederick-vs-ja

Description

@frederick-vs-ja

Per standard requirements (N4868 [source.srcloc.cons]/1.1, N4868 [support.srcloc.obs]/2), the return value of column() obtained from std::source_location::current() is implementation-defined and thus should be documented.

Currently, __builtin_COLUMN and __builtin_source_location are mentioned in this page, but their values are not well-documented.

Documentations of implementations would be helpful when one wants use column(), as there's implementation divergence (can be found in this test file in MSVC STL).

Metadata

Metadata

Assignees

Labels

clangClang issues not falling into any other categorydocumentationgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions