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

[.clang-format ] Update prohibited property 'AlignEscapedNewlinesLeft'. #14115

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

aarlt
Copy link
Member

@aarlt aarlt commented Apr 12, 2023

  • 'AlignEscapedNewlines' set to 'Left' is now the correct property.

I just saw that AlignEscapedNewlinesLeft is an prohibited property nowadays. It seem to got implemented before LLVM 5.0. However, I'm not able to find now the correct commit. See llvm/llvm-project#31808 (comment). I was not able to find the related revision r302428 in the current GitHub repository. It seem to have got merged after LLVM 4.0.1-rc1 and before LLVM 4.0.1-rc2 not sure what happened there.

- 'AlignEscapedNewlines' set to 'Left' is now the correct property.
@aarlt aarlt self-assigned this Apr 12, 2023
Copy link
Member

@r0qs r0qs left a comment

Choose a reason for hiding this comment

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

I just saw that AlignEscapedNewlinesLeft is an prohibited property nowadays.

I'm fine with the change, but the option seems to still available: https://github.com/llvm/llvm-project/blob/main/clang/lib/Format/Format.cpp#L820

However, I'm not able to find now the correct commit

Here is the commit that changed it: llvm/llvm-project@7fdbb3f

@aarlt
Copy link
Member Author

aarlt commented Apr 13, 2023

I just saw that AlignEscapedNewlinesLeft is an prohibited property nowadays.

I'm fine with the change, but the option seems to still available: https://github.com/llvm/llvm-project/blob/main/clang/lib/Format/Format.cpp#L820

Yep, it is still there for backward compatibility. But I think it's better to update.

@aarlt aarlt merged commit 24d43dd into develop Apr 21, 2023
@aarlt aarlt deleted the clang-format-remove-prohibited-property branch April 21, 2023 16:45
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.

None yet

3 participants