diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst index 87bbb3d127ad5..6e90efe0f1119 100644 --- a/llvm/docs/CodingStandards.rst +++ b/llvm/docs/CodingStandards.rst @@ -1713,10 +1713,13 @@ would help to avoid running into a "dangling else" situation. handleOtherDecl(D); } - // Use braces for the `else` block to keep it uniform with the `if` block. + // Use braces for the `else if` and `else` block to keep it uniform with the + // `if` block. if (isa(D)) { verifyFunctionDecl(D); handleFunctionDecl(D); + } else if (isa(D)) { + handleGlobalVarDecl(D); } else { handleOtherDecl(D); }