Skip to content

Discuss clang-format options.#81

Closed
ahmedcharles wants to merge 1 commit intoMudlet:developmentfrom
ahmedcharles:options
Closed

Discuss clang-format options.#81
ahmedcharles wants to merge 1 commit intoMudlet:developmentfrom
ahmedcharles:options

Conversation

@ahmedcharles
Copy link
Copy Markdown
Contributor

This isn't meant to be merged, but rather, be a discussion about which
options people want to use. I've added comments next to each formatting
option that clang-format supports and that we specify. Many of them are
fairly obvious choices and some of the settings I'm ignoring for now,
either for future discussion or because they are for fine tuning later and
not important at the moment.

For things I want to call out as potentially contentious, I'll have the
comments start with **'s.

This isn't meant to be merged, but rather, be a discussion about which
options people want to use. I've added comments next to each formatting
option that clang-format supports and that we specify. Many of them are
fairly obvious choices and some of the settings I'm ignoring for now,
either for future discussion or because they are for fine tuning later and
not important at the moment.

For things I want to call out as potentially contentious, I'll have the
comments start with **'s.
@ahmedcharles
Copy link
Copy Markdown
Contributor Author

Note, the link to the options is: http://clang.llvm.org/docs/ClangFormatStyleOptions.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may break QMaps, such as QMap< QString, QMap< QString, QString> >

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format adds a space between the >'s at the end, when needed in C++03, but it removes them in C++11, since they aren't required.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SpacesInAngles: false sounds fine with me.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, the > > always bugged me.

@ahmedcharles
Copy link
Copy Markdown
Contributor Author

These changes went in.

@ahmedcharles ahmedcharles deleted the options branch September 5, 2014 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants