Skip to content

Auto format : indent namespaces by default #6813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Auto format : indent namespaces by default #6813

wants to merge 1 commit into from

Conversation

staadecker
Copy link

IMO, namespaces should be indented by default. It would be interesting to see if it was decided (per some guideline) not to indent namespaces or if it was just forgotten.

closes #6812

Copy link
Collaborator

@matthijskooijman matthijskooijman left a comment

Choose a reason for hiding this comment

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

Indenting namespaces seems like a good default to me.

@facchinm facchinm added the Component: IDE user interface The Arduino IDE's user interface label Oct 11, 2017
@facchinm facchinm added this to the Next milestone Oct 11, 2017
@facchinm facchinm added Component: IDE The Arduino IDE and removed Component: IDE user interface The Arduino IDE's user interface labels Oct 11, 2017
@eric-wieser
Copy link
Contributor

It's pretty typical not to indent namespaces in C++ code, because typically the entire contents of a file is within a single namespace.

The google style guide also recommends against indenting namespaces.

@cmaglie
Copy link
Member

cmaglie commented Oct 30, 2017

I agree with @eric-wieser here, it seems more common to not indent namespaces.

Anyway, we will never find a configuration that match everyone's personal taste, so I'll close this as wontfix and just keep the existing configuration.

@cmaglie cmaglie closed this Oct 30, 2017
@cmaglie cmaglie removed this from the Next milestone Oct 30, 2017
@cmaglie cmaglie added the Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature label Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No indent for namespace with auto format
5 participants