]> granicus.if.org Git - clang/commit
clang-format: Ignore contents of #ifdef SWIG .. #endif blocks.
authorDaniel Jasper <djasper@google.com>
Wed, 1 Mar 2017 10:47:52 +0000 (10:47 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 1 Mar 2017 10:47:52 +0000 (10:47 +0000)
commit948ee9b211f06b03795f459d332330742ea5d4c5
treec3b515a6730c5dbc13210d476fe4cb40bcf5290b
parent90dab93aeac98d94cd28cb0df975fe3d6919c1b0
clang-format: Ignore contents of #ifdef SWIG .. #endif blocks.

Those blocks are used if C++ code is SWIG-wrapped (see swig.org) and
usually do not contain C++ code. Also cleanup the implementation of for #if 0
and #if false a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTestComments.cpp