[clang] [clang-format] Allow custom pointer/ref alignment in return types (PR #169160)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 22 06:46:09 PST 2025
================
@@ -6540,12 +6540,44 @@ void TokenAnnotator::printDebugInfo(const AnnotatedLine &Line) const {
llvm::errs() << "----\n";
}
+static bool isReturnType(const FormatToken &Tok) {
+ // Look forward to see if there's a function declaration paren
+ const FormatToken *Next = Tok.Next;
+ while (Next) {
----------------
HazardyKnusperkeks wrote:
Use a `for` loop.
https://github.com/llvm/llvm-project/pull/169160
More information about the cfe-commits
mailing list