[all-commits] [llvm/llvm-project] 643f2b: [clang-format] Improve detection of parameter decl...

Owen via All-commits all-commits at lists.llvm.org
Wed Aug 18 15:22:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 643f2be7b6afd91d9f0d6df89cd3391835763112
      https://github.com/llvm/llvm-project/commit/643f2be7b6afd91d9f0d6df89cd3391835763112
  Author: owenca <owenpiano at gmail.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp

  Log Message:
  -----------
  [clang-format] Improve detection of parameter declarations in K&R C

Clean up the detection of parameter declarations in K&R C function
definitions. Also make it more precise by requiring the second
token after the r_paren to be either a star or keyword/identifier.

Differential Revision: https://reviews.llvm.org/D108094




More information about the All-commits mailing list