Issue |
97892
|
Summary |
[clang-format] BasedOnStyle: dummy
|
Labels |
clang-format
|
Assignees |
|
Reporter |
feelamee
|
Hey
Is it possible to create dummy style, which will ignore all what is not configured?
I want to use clang-format in already big not formatted repository, but some of it code-style rules can't be represented in clang-format options.
One of example is namespace braces formatting. We always break before braces. But we also use compact record for several sequenced namespaces (we use C++14). See example.
Our code style is
```cpp
namespace foo
{
```
```cpp
namespace foo { namespace boo
{
```
But clang-format can only
```cpp
namespace foo
{
namespace boo
{
```
or
```cpp
namespace foo { namespace boo {
```
This isn't the one such example that's why for us is much easier to ignore this then change code-style.
So, I think better have 90% of auto formatted rules then 0.
I'm ready to contribute to add this feature if it is possible to add it in current clang-format implementation at all
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs