[cfe-dev] clang-format: Proposal for a new style for constructor and initializers line break.

Richard legalize at xmission.com
Mon Sep 15 09:46:10 PDT 2014


In article <CAK_tg0xYoOtEuHc3jaFO7-xF_hyTGFR+4D-+xK4MbNa9F6ZavA at mail.gmail.com>,
    Daniel Jasper <djasper at google.com> writes:

> Is this style used in any large project or widely used style guide?

For clang-format to be useful as an adjunct to source-to-source
transformation tools (i.e. refactoring tools), it needs to move
towards supporting many varieties of formatting preferences, not just
those mentioned in any style guide or used in any large project.

For instance, to be useful in Visual Studio, a refactoring tool should
support all the existing formatting options available in VS so that
refactored code can conform to the user's formatting preferences and
doesn't need to be reformatted again after refactoring.  (It's *way*
too easy to introduce a subtle bug while manually reformatting code
IMO.)

Daniel, did you raise this issue as a means of prioritizing changes to
clang-format, or did you mean to imply that clang-format should not
become as feature rich as the set of options provided by Visual Studio?
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>



More information about the cfe-dev mailing list