[PATCH] D133647: [clang-format] Parse the else part of `#if 0`
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 13 01:32:37 PDT 2022
owenpan accepted this revision.
owenpan added a comment.
This revision is now accepted and ready to land.
Thanks!
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1128
+ // If the first branch is unreachable, set the BranchIndex to 1. This way
+ // the next branch it will be parsed if there is one.
+ PPLevelBranchIndex.push_back(Unreachable ? 1 : 0);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133647/new/
https://reviews.llvm.org/D133647
More information about the cfe-commits
mailing list