[PATCH] D156370: [clang-format] Fix bug with parsing of function/variable names.
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 26 14:44:18 PDT 2023
HazardyKnusperkeks added a comment.
Does this result in a different annotation? Could you add a test for that?
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2211-2212
if (PreviousNotConst->is(tok::r_paren) &&
- PreviousNotConst->is(TT_TypeDeclarationParen)) {
+ (PreviousNotConst->is(TT_TypeDeclarationParen) ||
+ PreviousNotConst->is(TT_AttributeParen))) {
return true;
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156370/new/
https://reviews.llvm.org/D156370
More information about the cfe-commits
mailing list