[clang] [clang-format] Fix parsing attrs in class/struct (PR #124634)

2025-01-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Gedare Bloom (gedare) Changes An attribute in a class/struct declaration confuses the parser to treat the identifier following the attribute as a function or variable name. Fixes #124574 --- Full diff: https://github.com/llvm/llvm

[clang] [clang-format] Fix parsing attrs in class/struct (PR #124634)

2025-01-27 Thread Gedare Bloom via cfe-commits
https://github.com/gedare created https://github.com/llvm/llvm-project/pull/124634 An attribute in a class/struct declaration confuses the parser to treat the identifier following the attribute as a function or variable name. Fixes #124574 >From db6e09dca9d39b1c21543a069e7a1d1bf3997c0c Mon Se