[PATCH] D107961: [clang-format] Distinguish K&R C function definition and attribute

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 13 04:08:18 PDT 2021


MyDeveloperDay added a comment.

This is better as it will catch more cases but there can still be cases we could fall foul.

  Bar foo(a, Bar)
  LLVM_OVERRIDE;
  Bar foo(a, Bar)
  LLVM_FINAL;
  Bar foo(a, Bar)
  LLVM_NOEXCEPT;

Is there any way this K&R stuff can be put behind an option, I just feel like we'll be chasing shadows.


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

https://reviews.llvm.org/D107961



More information about the cfe-commits mailing list