/* -*- 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/. */ #ifndef LO_CLANG_SHARED_PLUGINS #include #include #include "check.hxx" #include "plugin.hxx" #include "config_clang.h" namespace { class ConstexprLiteral final : public loplugin::FilteringPlugin { public: explicit ConstexprLiteral(loplugin::InstantiationData const& data) : FilteringPlugin(data) { } bool VisitVarDecl(const VarDecl* varDecl) { if (ignoreLocation(varDecl)) return true; if (varDecl->isConstexpr()) return true; if (!loplugin::TypeCheck(varDecl->getType()) .Class("OUStringLiteral") .Namespace("rtl") .GlobalNamespace()) return true; report(DiagnosticsEngine::Warning, "OUStringLiteral should be declared constexpr", varDecl->getBeginLoc()) << varDecl->getSourceRange(); return true; } bool preRun() override { if (!compiler.getLangOpts().CPlusPlus) return false; return true; } private: void run() override { if (preRun()) { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } } }; loplugin::Plugin::Registration constexprliteral("constexprliteral"); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ 2'>distro/cib/libreoffice-6-2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-08tdf#152887 Add status bar icons for Accessibility CheckRizal Muttaqin
Change-Id: Ied2b876938824c3504231988943851bd97265e44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148466 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-07Resolves tdf#153344 - Resize Save icon in statusbar to 16pxHeiko Tietze
16px instead 18px to comply with the other icons Change-Id: Ic7e3531c30f1af75b38416a94acc2e7ea16c3ded Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148350 Tested-by: Jenkins Tested-by: Rizal Muttaqin <rizmut@libreoffice.org> Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-04Related tdf#153344 - Resize Selection Mode icon in statusbar to 16pxHeiko Tietze
Also removed the "_10x22" from the icons Change-Id: Iccdd5b784f43f1588aa1b5e72d01dd220209cc21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148120 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-01Related tdf#153344 - Resize Save icon in statusbar to 18pxHeiko Tietze
Also removed the "_14" from the yes/no icons Change-Id: Ic43219fe0e4555416b78831d45f9edc8060f73cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148063 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-02-23Revert "Resolves tdf#152947 - Accessibility for save status icon"Heiko Tietze
This reverts commit 9844064f252e8ec383d3c5bf24830acd868bb764. Reason for revert: Rectangle makes the small icons even more tiny. Looking for a better solution. Change-Id: I3161d488346305ee814884758f1d8679d64db07b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147451 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-01-25Resolves tdf#152947 - Accessibility for save status iconHeiko Tietze
Added a rectangle around the *yes variants Change-Id: Ia60a5e4f6f7b0e04d0f0e7e8c5fd7bd0f8fa5492 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146136 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-03-24Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
Change-Id: I2836c1ac742f61dd2d7175601032e9d3642dc0c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131978 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2022-03-22Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
Change-Id: I9cdfdaefa1a9f487e471fe3a3f958da3b9e86904 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131917 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
Change-Id: Iabf739383aab078139289a6c8a50a711d05eb6c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131846 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
Change-Id: Ie37c5a61de1f7ff53985e4555c430e00bc82733b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131845 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2022-03-12Colibre: tdf#146545 Add dark variantRizal Muttaqin
Change-Id: I041d74336c3f59e0240341acfb7c50d60d64429e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131411 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>