-
**Problem**
`Always` option does not work as documented.
**Version**
```console
> clang-format --version
clang-format version 14.0.0 (https://github.com/llvm/llvm-project 3f43d803382d57e3fc010c…
-
In clang-format-12, `KeepEmptyLinesAtTheStartOfBlocks: false` removes the empty space at the top of a namespace. Starting with clang-format-13 (including 14, 15, 16) this option is no longer effective…
-
Suppose you have the following C code, creating a global array variable:
```C
int array[]=
{
1,/**/
2/**/
};
```
When I use `clang-format --style="{UseTab: Always}"` command, four spaces are i…
-
Hey,
It would be awesome to have an option (the name could be `UseTypedefInsteafOfFullStructName`) so when we have this
```c
struct abc{};
typedef struct abc a;
int main() {
struct abc b;
}
…
-
-
clang-format doesn't always seem to format a space between 'identifier (...' when the docs suggest it should:
Here's an input that I have purposefully spaced at odds with clang-format's behaviour -…
-
Clang-format 11.0 have unexpected behavior for cleaning redundant includes.
Assuming my _src/MyProject/MySubLibrary/MySubClass.cpp_ source file redundant includes are:
```cpp
#include "MyProject/…
-
With this clang-format config:
```yaml
AlignArrayOfStructures: Left
IndentWidth: 4
SpaceBeforeCpp11BracedList: true
TabWidth: 4
UseTab: ForContinuationAndIndentation
```
I would expect the…
-
**clang-format Version:** 13.0.
**Description:** AlignTrailingComments (?) behaves different for the following two input cases
**Reproduction Steps:** Format the following two blocks of input code…
-
Given the following code and a Clang-Format file that has a maximum line length:
````cpp
auto veryLong =
R"raw(aaaaaa...aaaaaaaa)raw";
````
Clang-Format does not want to split the raw strin…