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

AlignConsecutiveMacros does not work when set through Custom ST settings #67

Open
j-rahman opened this issue Sep 5, 2021 · 1 comment

Comments

@j-rahman
Copy link

j-rahman commented Sep 5, 2021

I have the same style configuration written on a .clang-format file and the clang_format_custom.sublime_settings file (modulo whatever syntactic changes are necessary). The particular line of interest is the following.

"AlignConsecutiveMacros": "Consecutive", // .clang-format has: AlignConsecutiveMacros: Consecutive

Now, when I run this by first changing Clang Format: Select Style to File, then choosing Clang Format: Format Selection, I get the correct result (most of the times): namely, the preprocessor macros of consecutive lines are aligned. However, if I change Clang Format: Select Style to Custom and then choose Clang Format: Format Selection, then the macros are all unaligned.

I am seeing this bug on two of my Fedora 32 machines using Sublime Text 4 (build 4113).

@dontblink
Copy link

If you have the PackageResourceViewer plugin in sublime, in clang_format.py add "AlignConsecutiveMacros" to all_settings.

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