summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/duplicate-defines.cxx
AgeCommit message (Collapse)Author
2020-02-03Silence loplugin:duplicatedefines for WIN32_LEAN_AND_MEAN (clang-cl)Stephan Bergmann
...as seen at > In file included from desktop/win32/source/QuickStart/QuickStart.cxx:29: > In file included from include\systools/win32/uwinapi.h:25: > include\prewin.h(38,9): error: duplicate defines [loplugin:duplicatedefines] > #define WIN32_LEAN_AND_MEAN > ^ > desktop/win32/source/QuickStart/QuickStart.cxx(24,9): note: previous define [loplugin:duplicatedefines] > #define WIN32_LEAN_AND_MEAN > ^ (An alternative fix could be to replace all those defines of WIN32_LEAN_AND_MEAN prior to including windows.h with includes of prewin.h and postwin.h?) Change-Id: I0271b5629af8f4ecfb3c90f1455bad399174f6ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87880 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-17Adapt loplugin:duplicatedefines to include/premac.hStephan Bergmann
Change-Id: I2f79409f0fe2a18ba00585a35b6f1cf6243b7c1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86995 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-01-14update and enable loplugin:duplicate-definesNoel Grandin
Change-Id: I713b9985b2a69fe3c84069f19c772969e2631e46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85571 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-11-16Fix loplugin::Entry ODR violationStephan Bergmann
(caused crashes with CLANGDEBUG=1 in compilerplugins/Makefile-clang.mk) Change-Id: I43ba276f03c87c97b624a59f2b368422fd5b0a7b Reviewed-on: https://gerrit.libreoffice.org/82982 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-10-02-Werror,-Winconsistent-missing-overrideStephan Bergmann
Change-Id: I4cfb01582e5cfef55909ae56fd14ce8ccd5c14be Reviewed-on: https://gerrit.libreoffice.org/79990 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-09-30new loplugin:duplicate-definesNoel Grandin
Change-Id: I98e17e0a92ae5d51778b9a72c679ed262a6f5cb0 Reviewed-on: https://gerrit.libreoffice.org/79826 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>