This patch only handles C++11 attributes before a function declaration/definition name. It doesn't cover attributes in variable declarations, which may be supported in the future.
Fixes:
https://github.com/llvm/llvm-project/issues/45968
https://github.com/llvm/llvm-project/issues/54265
https://github.com/llvm/llvm-project/issues/58102
Can be removed.