/* -*- 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/. */ #include void func1() { std::vector v1; int n = 0; for (int i = 0; i < 10; ++i) // expected-error {{loop variable not used [loplugin:unusedindex]}} n += 1; for (int i = 0; i < 10; ++i) n += i; for (int i = 0; i < 10; ++i) // expected-error {{loop variable not used [loplugin:unusedindex]}} { for (int j = 0; j < 10; ++j) { n += j; } } for (int i = 0; i < 10; ++i) { for (int j = 0; j < 10; ++j) { n += j; n += i; } } } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ 4-LTS LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-18better message for crash report dialogMarkus Mohrhard
Change-Id: I02903cda46809798ec7664cf620c06ea7687e54e Reviewed-on: https://gerrit.libreoffice.org/26443 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-04report the crash id back to the userMarkus Mohrhard
Change-Id: I5cc1e698294a5674d691529af8cc14e4cd87a711 Reviewed-on: https://gerrit.libreoffice.org/25865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-17cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Id506e26ab4986a3972ebf24397c5c0c8d131fe69
2016-03-01loplugin:overrideStephan Bergmann
Change-Id: Ib051a2468b219aeae9eedef6d6930ea67815ab6e
2016-02-27work on adding crash report UIMarkus Mohrhard
Change-Id: I66f4dca3cd32381ecd52cc36490e7ee1dddf3699 Reviewed-on: https://gerrit.libreoffice.org/22566 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>