From cb99ae2b7c9988656b097ad2789dffd2c0c37939 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Fri, 24 Sep 2021 14:56:57 -0700 Subject: [PATCH] clang-format: Enforce ordering of includes in ZBody --- .clang-format | 2 +- src/script_opt/ZAM/ZBody.cc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 14203ffdc7..394707c91a 100644 --- a/.clang-format +++ b/.clang-format @@ -30,7 +30,7 @@ BreakBeforeBraces: Whitesmiths # SplitEmptyNamespace: false AccessModifierOffset: -4 -AlignAfterOpenBracket: true +AlignAfterOpenBracket: Align AlignTrailingComments: false AllowShortBlocksOnASingleLine: Empty AllowShortEnumsOnASingleLine: true diff --git a/src/script_opt/ZAM/ZBody.cc b/src/script_opt/ZAM/ZBody.cc index b58960ad36..aa6efde064 100644 --- a/src/script_opt/ZAM/ZBody.cc +++ b/src/script_opt/ZAM/ZBody.cc @@ -313,9 +313,11 @@ ValPtr ZBody::DoExec(Frame* f, int start_pc, StmtFlowType& flow) case OP_NOP: break; -// These must stay in this order or the build fails. + // These must stay in this order or the build fails. + // clang-format off #include "ZAM-EvalMacros.h" #include "ZAM-EvalDefs.h" + // clang-format on default: reporter->InternalError("bad ZAM opcode");