[all-commits] [llvm/llvm-project] 8f1156: [clang-format] Fix an ObjC regression introduced w...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Tue May 26 10:52:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f1156a7d004d97e9f75484a00dc4278698fd8ea
      https://github.com/llvm/llvm-project/commit/8f1156a7d004d97e9f75484a00dc4278698fd8ea
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/UnwrappedLineParser.h
    M clang/unittests/Format/FormatTest.cpp
    M clang/unittests/Format/FormatTestObjC.cpp

  Log Message:
  -----------
  [clang-format] Fix an ObjC regression introduced with new [[likely]][[unlikely]] support in if/else clauses

Summary:
{D80144} introduce an ObjC regression

Only parse the `[]` if what follows is really an attribute

Reviewers: krasimir, JakeMerdichAMD

Reviewed By: krasimir

Subscribers: rdwampler, aaron.ballman, curdeius, cfe-commits

Tags: #clang, #clang-format

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




More information about the All-commits mailing list