[clang] [Format] Configure ASSIGN_OR_RETURN macros for Google style (PR #200210)
Jesse Rosenstock via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 6 13:12:30 PDT 2026
================
@@ -2101,6 +2101,20 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
GoogleStyle.IncludeStyle.IncludeIsMainRegex = "([-_](test|unittest))?$";
GoogleStyle.IndentCaseLabels = true;
GoogleStyle.KeepEmptyLines.AtStartOfBlock = false;
+
+ GoogleStyle.Macros.push_back("ASSIGN_OR_RETURN(a, b)=a = (b)");
----------------
jmr wrote:
This is how https://github.com/llvm/llvm-project/pull/169037/changes, which was merged, did it.
https://github.com/llvm/llvm-project/pull/200210
More information about the cfe-commits
mailing list