[all-commits] [llvm/llvm-project] f6bc61: [clan-format] detect function definitions more con...

Krasimir Georgiev via All-commits all-commits at lists.llvm.org
Tue Aug 3 07:21:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6bc614546e169bb1b17a29c422ebace038e6c62
      https://github.com/llvm/llvm-project/commit/f6bc614546e169bb1b17a29c422ebace038e6c62
  Author: Krasimir Georgiev <krasimir at google.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clan-format] detect function definitions more conservatively

https://reviews.llvm.org/D105964 updated the detection of function
definitions. It had the unfortunate effect to start marking object
definitions with attribute-like macros as function definitions.

This addresses this issue.

Reviewed By: owenpan

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




More information about the All-commits mailing list