/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ int main() { int x = 1; if (x == 1) // expected-error {{empty if body [loplugin:emptyif]}} ; if (x == 1) { } // expected-error@-3 {{empty if body [loplugin:emptyif]}} if (x == 1) { } else { } // expected-error@-2 {{empty else body [loplugin:emptyif]}} if (x == 1) { } else ; // expected-error {{empty else body [loplugin:emptyif]}} if (x == 1) { } else { x = 2; } // no warning expected if (x == 1) { x = 3; } if (x == 1) x = 3; if (x == 1) { // } if (x == 1) { /* */ } } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ o/collabora/cd-5.3-3.2'>distro/collabora/cd-5.3-3.2 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2016-06-21 20:11:38 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2016-06-21 20:35:13 +0200
commit0027ac636c89b3a606e76291246c0e49b64fe4db (patch)
tree3616dd9c855181009865494403e0c6ae1780ed75
parent5a19b0e2aace7ae41441a09e9aa31be7350ec18f (diff)
update translations for 5.2.0 rc1
and force-fix errors using pocheck Change-Id: I0ddd38b998824a5718c70610f21ac163db83f507
Diffstat