[PATCH] D69764: [clang-format] Add Left/Right Const fixer capability

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 10 07:38:17 PDT 2021


MyDeveloperDay added a comment.

> In D69764#2936827 <https://reviews.llvm.org/D69764#2936827>, @HazardyKnusperkeks wrote:
>
>> First off, I think it should be configured in a different way, to prepare the path for also formatting static, inline, etc.

I'm wondering if I'm gravitating more and more to what @aaron.ballman said way back, maybe I don't even need Left and Right but instead just

  CVQualifierOrder: [ "static", "inline", "constexpr", "<type>" ,"const", "volatile"] 

I wonder if I could simply split out the individual keywords as being "Left" or "Right" of the "<type>" and apply different alignments to different keywords at the same time....


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

https://reviews.llvm.org/D69764



More information about the cfe-commits mailing list