[clang] [clang-format] Improve BlockIndent at ColumnLimit (PR #93140)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 13:15:30 PDT 2024
================
@@ -803,6 +803,60 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
return !Tok.Previous->isOneOf(TT_CastRParen, tok::kw_for, tok::kw_while,
tok::kw_switch);
};
+ // Detecting functions is brittle. It would be better if we could annotate
+ // the LParen type of functions/calls.
----------------
gedare wrote:
> I've done it in #97938. Can you use it after it's merged?
Yes, that works to replace the `IsFunctionDeclParen`, very nice thanks. I still need the hacky way of detection FunctionCallLParen.
https://github.com/llvm/llvm-project/pull/93140
More information about the cfe-commits
mailing list