[PATCH] D79388: [clang-format] Fix AlignConsecutive on PP blocks

Jake Merdich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 5 04:48:36 PDT 2020


JakeMerdichAMD added a comment.

@MyDeveloperDay, you're right about what this issue addresses: it surprised me a lot when an unrelated edit caused something to 'randomly' add spaces elsewhere, since it's in a different ifdef block (whether or not it has the same condition). The code that's aligned should always be across lines that are visually consecutive, and those ones weren't (in most cases, they aren't even logically consecutive).

You're also right that I don't have commit access; this is my first commit in LLVM.

> I'm struggling with the simplicity of your solution ;-) (that's a compliment!)

Thank you!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79388/new/

https://reviews.llvm.org/D79388





More information about the cfe-commits mailing list