From 8d934b73ccac14c76f6596c33b087e22ba82be09 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 21 Apr 2016 12:05:48 +0200 Subject: Better fix for 13758a3d154e8e450fdfe8bcdeb6b3a03996c53a "SourceManager::isMacroArgExpansion has only one param in older Clang", which caused false positives like warning about sal_False in CPPUNIT_ASSERT_EQUAL(guard.p->m1, sal_False); in cppu/qa/cppumaker/test_cppumaker.cxx Change-Id: I1c5a67527aef381e336d71cb8fefbb87961bbf96 --- compilerplugins/clang/compat.hxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'compilerplugins/clang/compat.hxx') diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index 6c1152c1fc9b..cd3cb3af89ee 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -256,6 +256,24 @@ inline void addPPCallbacks( #endif } +inline bool isMacroArgExpansion( + clang::CompilerInstance& compiler, clang::SourceLocation location, + clang::SourceLocation * startLocation) +{ +#if CLANG_VERSION >= 30900 + return compiler.getSourceManager().isMacroArgExpansion( + location, startLocation); +#else + bool b = compiler.getSourceManager().isMacroArgExpansion(location); + if (b) { + startLocation* = compiler.getSourceManager() + .getSLocEntry(compiler.getSourceManager().getFileID(location)) + .getExpansion().getExpansionLocStart(); + } + return b; +#endif +} + inline bool isMacroBodyExpansion(clang::CompilerInstance& compiler, clang::SourceLocation location) { #if CLANG_VERSION >= 30300 -- cgit option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/translations
AgeCommit message (Collapse)Author
2013-09-10Updated coreEike Rathke
Project: translations c4768e4b398b6090f524ae801d74ad55879239ca
2013-09-04Updated coreEike Rathke
Project: translations 54fd99cf0cda479641a91bb9e7f2ebe8a8384b1c
2013-08-28Updated coreCaolán McNamara
Project: translations 567bb9410fe82204fd990f2ef92fe530a7ef45bc
2013-07-25Updated coreArnaud Versini
Project: translations beb092fb3ee30faabbe1479279d8426900f53943 fdo#67093 Change traduction of Header in it to avoid conflict with Heading Change-Id: Ib2c7d4c7df2f492a6a10081c9ed4e99ac9e61e73 Reviewed-on: https://gerrit.libreoffice.org/5092 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-22Updated coreChristian Lohmaier
Project: translations 8fe00a5faf3c817a8ec89a2cfc68114c456281bc fdo#67093 Change traduction of Title for some more languages For those languages that had an alternative translation for the title style in ede3fe62d4b30ebe82d2e2b837bd5d8247b73438 - still languages left that have identical translations Change-Id: Ibcd7d03c9ea7608c8963d1cb9b7c2d7cbe2415d5 Reviewed-on: https://gerrit.libreoffice.org/5038 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-20Updated coreArnaud Versini
Project: translations d3cf882e3bc074447bbe708b914b1566d0e8b0d1 fdo#67093 Change traduction of Title in french to avoid conflict with Heading. Change-Id: Ia87132d3593097cc9d7b81a254c300de8b9fa3a5 Reviewed-on: https://gerrit.libreoffice.org/4994 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-27Updated coreAndras Timar
Project: translations 05ab1fefb5b317f213960a06fcab7dc1afdcb7e0
2013-06-27Updated coreAndras Timar
Project: translations 379fd9390159208a5c453ee611d1425537bb91b8
2013-06-27Updated coreAndras Timar
Project: translations 56f43677e90d28489fa3dbbd5bc5f35a5483e354
2013-06-15Updated coreAndras Timar
Project: translations 27c79c7d3fa134bf63e6397000b3fc31ad758567
2013-06-13Updated coreCaolán McNamara
Project: translations 0951535c576e6a2693b25311832b25bcd67b7bb3
2013-06-12Updated coreAndras Timar
Project: translations 134bbcf189eeaa9bb7f0efb726f3eb980f37085e
2013-06-12Updated coreAndras Timar
Project: translations 5137a13645dcf041c6b9c798c2b47be26d624c9e
2013-06-12Updated coreAndras Timar
Project: translations c9147a423f9528d10c1de9c0caf5a3694410f893
2013-06-11Updated coreAndras Timar
Project: translations 6f51f560aeead852a1add0250e068192477967e9
2013-06-11Updated coreAndras Timar
Project: translations 91d7065cae5bfbcfcf243fe9dcefbca6e13c42fa
2013-06-07Updated coreAndras Timar
Project: translations de5d1bf0aa459e78c73782b5f9b5f2f7da5734c5
2013-06-02Updated coreAndras Timar
Project: translations 388a988b3a02f0bbd68c91520503fca3b7f53d04
2013-05-27Updated coreAndras Timar
Project: translations f3546694e706114bcccd978f444f0800a382dbf9
2013-05-27Updated coreAndras Timar
Project: translations 40e56fe83f5a05f8c87821d0c30ef1585b601fc8
2013-05-26Updated coreAndras Timar
Project: translations 7db61e0f23b962f97e9246e0a8fb60e47fff0ac9
2013-05-21Updated corePetr Mladek
Project: translations 66306b922014c7941665d67e1310a88e3e85f99d
2013-05-20Updated coreAndras Timar
Project: translations 6148d0296697632af52c5e39787cd09c2a748fd7
2013-05-07Updated coreAndras Timar
Project: translations e06e924e1a2d2497cea1f282ab5381ee78f0b05e
2013-05-07Updated coreAndras Timar
Project: translations 3b967bbce7fae6b042bbbe5c2bf9fad14941192f
2013-04-15translations: revert submodule to current masterMichael Stahl
Change-Id: I226e052a3a6ef72d796b83ebb69fef57710c3df4
2013-04-13Remove obsolote 'empty string -> "-"' behaviourZolnai Tamás
Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
2013-04-11Updated coreAndras Timar
Project: translations d3a0a08f6d4e27af6960010fa774b96a009bf6bd