llvm / llvm/llvm-project

No option to insert space in compound literal

Open
#189,171 1 comment 0 reactions 0 assignees View on GitHub
clang-format
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

After #180179, there is still no option to bring back the insertion of the space back into compound literals. Ideally, an option like `SpaceAfterCompoundLiteralType` should be introduced to bring this behavior back.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing issue #180179 and the existing compound-literal spacing behavior in the formatter. Locate the related option handling and tests, then add coverage for the proposed setting. Done means the option restores insertion of a space after the compound literal type without changing unrelated formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.