Skip to content
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

Namespace Resolution Operator Alignment #42

Open
JohannesMP opened this issue Feb 14, 2018 · 1 comment
Open

Namespace Resolution Operator Alignment #42

JohannesMP opened this issue Feb 14, 2018 · 1 comment

Comments

@JohannesMP
Copy link

JohannesMP commented Feb 14, 2018

The following c++ code:

A::B obj1;
LongNamespace::C obj2;

Aligns on the colon character:

A:             :B obj1;
LongNamespace: :C obj2;

This of course is not valid C++ anymore.

It would be nice if there was a setting to allow alignment on : but disable alignment on ::. Maybe a blacklist of strings that will prevent alignment if they contain a character that normally would be aligned on.


Potentially this could be used to address issues such as #37 - in this case == would be added to the blacklist, which would prevent === from ever getting split, since the = characters in it would never be considered for splitting.

@jarod2d
Copy link
Owner

jarod2d commented Feb 27, 2018

Sorry for the slow reply! I like your proposal, I think that would solve these kinds of issues nicely. I'm still too bogged down in other projects to take a look into this right now unfortunately, but I'd be happy to look at a PR!

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

No branches or pull requests

2 participants