[llvm-bugs] [Bug 46567] New: Option to ignore/disable format for specific styles
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 2 15:11:04 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46567
Bug ID: 46567
Summary: Option to ignore/disable format for specific styles
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: rami.abughazaleh at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Hi.
Thank you for clang-format.
I'm trying to introduce .clang-format in an existing repository, but I can't
tell clang-format to not change the current style of specific things.
For example, "AlignConsecutiveDeclarations" can only be set to "true" and
"false", or not set at all, but in all cases, clang-format will change the
alignment of existing code if its not styled as expected.
I would like the ability to set "AlignConsecutiveDeclarations: disable", for
example, to disable formatting for just that one setting.
The code clang-format is run against doesn't conform to any guidelines, so I
wanted to introduce clang-format a few rules at a time, instead of having to
"litter" the code with "clang-format off".
Thank you.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200702/7e090e6f/attachment.html>
More information about the llvm-bugs
mailing list