Skip to content

Clangd puts parameter name hint on UDLs #63898

Closed
@danakj

Description

@danakj

This is confusing because UDLs are not visibly a function call.

int inline consteval operator""_lit(unsigned long long val) { return 0; }

int main() {
    return 3_lit;
}

When the above is annotated by clangd, it puts val: in front of 3_lit, it looks like this:

int main() {
    return val: 3_lit;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions