HomePhabricator

[clang-format] Fix an ObjC regression introduced with new [[likely]]…

Authored by MyDeveloperDay on May 26 2020, 10:47 AM.

Description

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

Summary:
D80144: [clang-format] @lefticus just taught the world how to use [[unlikely]] but we forgot to teach clang-format 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