[clang] [polly] [clang-format] Add AllowShortType option for AlwaysBreakAfterReturnType. (PR #78011)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 28 12:12:16 PST 2024
================
@@ -587,7 +590,7 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
!State.Line->ReturnTypeWrapped &&
// Don't break before a C# function when no break after return type.
(!Style.isCSharp() ||
- Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None) &&
+ Style.AlwaysBreakAfterReturnType > FormatStyle::RTBS_AllowShortType) &&
----------------
HazardyKnusperkeks wrote:
I know Owen proposed this. But I have to note, that I personally really don't like greater or lesser with enums.
https://github.com/llvm/llvm-project/pull/78011
More information about the cfe-commits
mailing list