[clang] [clang-format] Fix a bug in annotating TrailingReturnArrow (PR #69249)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 16 14:42:20 PDT 2023
================
@@ -3497,6 +3497,15 @@ void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const {
Tok->setType(TT_TrailingReturnArrow);
break;
}
+ if (Tok->isNot(TT_TrailingAnnotation))
----------------
owenca wrote:
Because `TT_TrailingAnnotation` is only the known case that needs special handling.
https://github.com/llvm/llvm-project/pull/69249
More information about the cfe-commits
mailing list