summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-08-03 10:52:38 +0000
committerschwarze <schwarze@openbsd.org>2020-08-03 10:52:38 +0000
commitfd9d9245c966bdd94aab952d1710455ada30a8ed (patch)
treeb225bbb6bdf250988fef36c71d1304a107f905a4 /gnu/llvm/clang/unittests/Format/FormatTestJava.cpp
parentremove timeval conversion interfaces no longer in linux (diff)
downloadwireguard-openbsd-fd9d9245c966bdd94aab952d1710455ada30a8ed.tar.xz
wireguard-openbsd-fd9d9245c966bdd94aab952d1710455ada30a8ed.zip
Put the code handling \} into a new function roff_cond_checkend()
and call that function not only from both places where copies existed - when processing text lines and when processing request/macro lines in conditional block scope - but also when closing a macro definition request, such that this construction works: .if n \{.de macroname macro content .. \} ignored arguments .macroname This fixes a bug reported by John Gardner <gardnerjohng at gmail dot com>. While here, avoid a confusing decrement of the line scope counter in roffnode_cleanscope() for conditional blocks that do not have line scope in the first place (no functional change for this part). Also improve validation of an internal invariant in roff_cblock() and polish some comments.
Diffstat (limited to 'gnu/llvm/clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions