summaryrefslogtreecommitdiff
path: root/idlc/source/astscope.cxx
AgeCommit message (Collapse)Author
2019-12-01missing includeStephan Bergmann
Change-Id: I7dc79698e642b3b971a769c57d7c7b9cfded249b Reviewed-on: https://gerrit.libreoffice.org/84132 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-18Simplify containers iterations in [f-l]*Arkadiy Illarionov
Use range-based loop or replace with STL functions Change-Id: Ib3fab47318d1bfbb4df8f886a8cd9596525a420f Reviewed-on: https://gerrit.libreoffice.org/67914 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-09loplugin:indentation in helpcompiler..ioNoel Grandin
Change-Id: Ia3f05662cc9542feeac3096d29e9dec6d1858620 Reviewed-on: https://gerrit.libreoffice.org/67558 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-06loplugin:collapseif in dbaccess..lotuswordproNoel Grandin
Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-17New loplugin:externalStephan Bergmann
...warning about (for now only) functions and variables with external linkage that likely don't need it. The problems with moving entities into unnamed namespacs and breaking ADL (as alluded to in comments in compilerplugins/clang/external.cxx) are illustrated by the fact that while struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } returns 1, both moving just the struct S2 into an nunnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { namespace { struct S2: S1 { int f() { return 1; } }; } int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } as well as moving just the function f overload into an unnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; namespace { int f(S2 s) { return s.f(); } } } int main() { return f(N::S2()); } would each change the program to return 0 instead. Change-Id: I4d09f7ac5e8f9bcd6e6bde4712608444b642265c Reviewed-on: https://gerrit.libreoffice.org/60539 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-18Use for-range loops in hwpfilter, i18n*, idl* and ioJulien Nabet
Change-Id: I980464162b73ed9ee0a09acbca1b9050af8d1027 Reviewed-on: https://gerrit.libreoffice.org/51492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-23loplugin:constmethod in cppu,cppuhelper,idlcNoel Grandin
Change-Id: I9138b7e5d53c30488f99e9f9b9fe3f98c8d6858b Reviewed-on: https://gerrit.libreoffice.org/43583 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-18loplugin:constparams codemaker,idl,idlcNoel Grandin
Change-Id: Ic72b7525cfbfbd3c5afb12fe9ea814176e6c8c9d Reviewed-on: https://gerrit.libreoffice.org/40126 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-16convert ErrorCode to scoped enumNoel Grandin
and drop unused enumerators Change-Id: I7330ebf8feead7b67e67f73ba942979e4756269d
2016-05-27Get rid of unnecessary directory levels $D/inc/$DTor Lillqvist
Change-Id: Ibf313b8948a493043006ebf3a8281487c1f67b48 Reviewed-on: https://gerrit.libreoffice.org/25532 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: Ic42387288c96436915956ede2eb510b9c3fbc49b
2015-08-22tdf#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: I6ab170c4426494ab9fc53017f88e47fbfdbd9aad Reviewed-on: https://gerrit.libreoffice.org/17920 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-03-27loplugin:staticfunctionNoel Grandin
Change-Id: Id796b799f8e2fcc3eae98d43800c5e31fec27fef
2014-12-16idlc: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ia537f5d5d573d24f5bbed7a20b9e9268181faa5f
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin
It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-07create clang plugin to warn about C-style castsNoel Grandin
We don't like C-style casts in our nice C++ code Change-Id: I94e7ec90de9275cd6e20c4146d4f3a74bed93c9d Reviewed-on: https://gerrit.libreoffice.org/10367 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-17idlc: sal_Bool -> boolStephan Bergmann
Change-Id: Ibeed903d73eb8b3fce7b8c6021c9107437a8c813
2014-01-30Remove UNOIDL "array" and "union" vaporware from idlcStephan Bergmann
Change-Id: Iccd5a78b54620796cfde672388b70ad97d17b7a5
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-02-13Some cppcheck cleaningJulien Nabet
Change-Id: I099171d85a51095f0ff6d592c1260d931f9769b2
2012-07-18re-base on ALv2 code. Includes:Michael Meeks
118568: switch to using ucpp Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1209396
2011-12-30Fix for fdo43460 Part XXI getLength() to isEmpty()Olivier Hallot
Part XXI Modules i18npool, idl, idlc, io, javaunohelper, jvmaccess
2011-11-27remove include of pch header from idlcNorbert Thiebaud
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-05remove include guards using fixguard.pyPetr Mladek
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2008-12-11CWS-TOOLING: integrate CWS jsc312Rüdiger Timm
2008-12-04 17:08:20 +0100 jsc r264858 : #i96902# update reference rdb 2008-12-04 17:06:34 +0100 jsc r264857 : #i96902# update reference rdb 2008-11-28 14:54:24 +0100 jsc r264556 : #i96671# correct location of generated scripts 2008-11-28 14:29:30 +0100 jsc r264554 : #92661# minor changes 2008-11-28 09:36:27 +0100 jsc r264527 : #92661# minor optimizations 2008-11-27 11:32:24 +0100 jsc r264470 : #92661# retrieve lib path and load related library full qualified 2008-11-18 09:08:22 +0100 jsc r263745 : #i93980# change docu, insert note that regview and regmerge are part of the ure 2008-11-18 09:05:12 +0100 jsc r263744 : #i93980# remove regview and regmerge 2008-11-18 08:57:09 +0100 jsc r263743 : #i93981# insert SDK rpath link option for regcompare 2008-11-18 08:55:08 +0100 jsc r263742 : #i93981# insert SDK rpath link option 2008-11-17 16:26:25 +0100 jsc r263727 : #i96055# correct brackets
2008-04-11INTEGRATION: CWS changefileheader (1.12.58); FILE MERGEDRüdiger Timm
2008/04/01 12:31:28 thb 1.12.58.2: #i85898# Stripping all external header guards 2008/03/31 07:23:51 rt 1.12.58.1: #i87441# Change license header to LPGL v3.
2006-09-17INTEGRATION: CWS pchfix02 (1.11.8); FILE MERGEDOliver Bolte
2006/09/01 17:31:13 kaib 1.11.8.1: #i68856# Added header markers and pch files
2006-06-20INTEGRATION: CWS warnings01 (1.9.30); FILE MERGEDJens-Heiner Rechtien
2005/11/21 16:28:40 sb 1.9.30.4: #i53898# Made code warning-free. 2005/09/23 00:04:27 sb 1.9.30.3: RESYNC: (1.9-1.10); FILE MERGED 2005/09/05 12:26:06 sb 1.9.30.2: #i53898# Made code warning-free. 2005/08/29 14:14:24 sb 1.9.30.1: #i53898# Made code warning-free.
2005-09-07INTEGRATION: CWS ooo19126 (1.9.32); FILE MERGEDRüdiger Timm
2005/09/05 17:39:39 rt 1.9.32.1: #i54170# Change license header: remove SISSL
2004-06-03INTEGRATION: CWS sb18 (1.8.4); FILE MERGEDOliver Bolte
2004/04/21 15:55:11 sb 1.8.4.2: #i21150# Cleaned up nomenclature of polymorphic struct types. 2004/04/08 14:37:16 sb 1.8.4.1: #i21150# Fixed UNOIDL typedef support; initial support for polymorphic struct types.
2004-03-30INTEGRATION: CWS sb14 (1.7.4); FILE MERGEDRüdiger Timm
2004/03/01 12:59:24 sb 1.7.4.1: #i21150# Added optional interface inheritance; added -stdin switch; do not warn about bad member names of com.sun.star.uno.Uik; some general clean up and added const qualifiers.
2004-02-03INTEGRATION: CWS sb10 (1.6.20); FILE MERGEDJens-Heiner Rechtien
2003/12/10 09:12:19 sb 1.6.20.1: #114000# Adapted to multiple-inheritance interface types.
2003-04-17INTEGRATION: CWS sdk01 (1.5.50); FILE MERGEDRüdiger Timm
2003/03/07 13:11:58 jsc 1.5.50.1: #108047# correct lookup of types
2001-05-10corrected an index errorPhilipp Lohmann
2001-05-10osl string api changesPhilipp Lohmann
2001-04-11performance optimization, stl iteratorsJuergen Schmidt
2001-04-10#85939# bugfix for lookup of unknown types in the scope of inherited interfacesJuergen Schmidt
2001-03-15newJuergen Schmidt