python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
clang-format: Why does disabling AlignAfterOpenBracket cause a line break?
I have the following line
const float CELL_WORLD_WIDTH{SharedConfig::CELL_WIDTH * SharedConfig::TILE_WORLD_WIDTH};
With AlignAfterOpenBracket: Align, it gets formatted as such
const float CELL_WORLD_...
Archduke
Votes: 0
Answers: 0
How to make clang-format not align parameters to function call?
I want to make clang-format not align call parameters to the '(' symbol. I had tried setting PenaltyBreakBeforeFirstCallParameter to 0, but it didn't help.
How I want it to be:
veeeeeeeryLongFunctionN...
Ar7eniyan
Votes: 0
Answers: 1
Clang format array initializer braces not aligning
I have this .clang-format file here:
TabWidth: 4
IndentWidth: 4
UseTab: Never
ColumnLimit: 100
Language: Cpp
DisableFormat: false
Standard: Latest
AccessModifierOffset: -4
AlignAfterOpenBracket: Al...
Karlovsky120
Votes: 0
Answers: 0
clang-format and references: can I get a "true" left alignment?
I've recently tried the ReferenceAlignment: Left option introduced in clang-format 13.
In combination with AlignConsecutiveDeclarations: true it produces a rather strange results:
ShortType &a...
user26785
Votes: 0
Answers: 1