Commit Graph

30 Commits

Author SHA1 Message Date
Stephan Bergmann
696722f2c8 loplugin:includeform: codemaker
Change-Id: If0c6726c4e096f50e2e16f2a4f7e5821457ac368
2017-10-23 22:46:12 +02:00
Noel Grandin
555ee51b77 convert to range-based for loops in codemaker/
Change-Id: Ifa521f34a8d9565bb61743c4a996bcba37e95ec2
2016-02-09 16:14:30 +02:00
Caolán McNamara
061474017b coverity#1338267 Uncaught exception
Change-Id: Id886abbafe7501e17eaae5b2ebf0bd065745c1ad
2015-11-06 12:16:00 +00:00
Caolán McNamara
cd31cfbf17 coverity#441732 Uncaught exception
Change-Id: Icd11b81566fec7ce4855cd4e54ff3a3d9862d354
2014-10-24 09:24:50 +01:00
Stephan Bergmann
a80fb45fe4 Revert "WIP: add cppumaker -U to directly read from .idl files"
This reverts commit c4113906d7, which is not
necessary after all with recent "Hook SourceProvider into unoidl::loadProvider."
2013-09-16 13:29:49 +02:00
Stephan Bergmann
c4113906d7 WIP: add cppumaker -U to directly read from .idl files
Change-Id: I420847515b6b691ae81a249a8820cf9a3d132372
2013-09-12 17:45:12 +02:00
Stephan Bergmann
bab43b23d5 Allow for (relative) pathname args for codemakers again
Change-Id: I503d88b7d6fc44ef70d5071fddcec465e3fba856
2013-04-24 12:42:01 +02:00
Stephan Bergmann
048e591819 Further codemaker, unodevtools clean-up
...getting rid of now dangling references to module registry.

Change-Id: Iccad7ff5dc0e79bf91b7b7dae03b73f16adeb121
2013-04-16 17:38:44 +02:00
Stephan Bergmann
fc02ae8f82 [API CHANGE] WIP: Experimental new binary type.rdb format
Make javamaker work on top of unoidl/ instead of registry/.

API CHANGE: javamaker no longer supports the -B switch, as that is meaningless
with the new format.  When reading from an old-format .rdb file, /UCR is hard-
coded as the prefix now.

Change-Id: I8cca39f8ebacd0476934f7bd493d206928d063a9
2013-04-11 09:29:44 +02:00
Stephan Bergmann
02a8e8acd1 [API CHANGE] WIP: Experimental new binary type.rdb format
Make cppumaker work on top of unoidl/ instead of registry/, as a first step to
change all the various codemakers.

* API CHANGE: cppumaker no longer supports the -B switch, as that is meaningless
  with the new format.  When reading from an old-format .rdb file, /UCR is
  hard-coded as the prefix now.

* TODO: The new format does not yet support deprecation annotations, so the
  generated .hdl/.hpp files lack any SAL_DEPRECATED_INTERNALs for now.

* codemaker/typemanager.hxx is extended with access to unoidl/ functionality, so
  the various codemakers can use registry/ and unoidl/ in parallel for now.
  The access to registry/ functionality will be removed.  (Added small throwaway
  helper functions u2b/b2u to easily map between OString and OUString at the
  remaining seams for now.)

* Includes a selective revert of ba044b1e96
  "remove needless forward rtl::OUString declarations" in those parts of
  codemaker, unodevtools, unoidl that were covered by this local
  work-in-progress patch; I would otherwise have hard a hard time re-applying
  it.

* The generated .hdl/.hpp files are mostly unchanged, except for a few minor
  things:

** Any SAL_DEPRECATED_INTERNALs are missing (see above).

** In comprehensive getCppuType definitions, some members were erroneously
   classified as TypeCalss_UNKNOWN.

** In comprehensive getCppuType definitions, some unnecessary calls like

     ::cppu::UnoType< ::sal_Int32 >::get();

   can be removed.

** For typedef sequence<X>, the .hdl file need not include X.hdl, but only needs
   to forward-declare it.

** Unnecessary includes for optional bases of interfaces can be removed.

** Some numbering of local variable names (sMethodName1, ...) has changed.

Change-Id: Icad98f248ac15177337f1b4ab709a755a8af6238
2013-04-09 09:44:33 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Stephan Bergmann
bb1f0c667f Clean up codemaker/typemanager.hxx
Change-Id: I650efd6780070410eaf34993dd41ed1b8ada7c9a
2013-03-27 09:36:54 +01:00
Marcos Paulo de Souza
9edeb948a2 Removed last RTL_CONST* macros from codemaker
Also, change ".equals" fro "==" and drop a useless function.

Change-Id: I5ce4fd2cc7c62a18e059e945b42cc01425802aa0
Reviewed-on: https://gerrit.libreoffice.org/2605
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2013-03-09 23:29:39 +00:00
Tor Lillqvist
625e173aaf OUString::replace() does not replace in-place
Change-Id: I5a1d713ee8e9c913adad57b7d8fb0597f96a2db4
2012-11-28 20:08:20 +02:00
Michael Meeks
c91e2cae54 re-base on ALv2 code. 2012-06-12 22:24:54 +01:00
Olivier Hallot
fd866ac8f1 Fix for fdo43460 Part VI getLength() to isEmpty()
Part VI
Module
codemaker
2011-12-13 00:40:14 +04:00
Norbert Thiebaud
d8ed87481c remove include of pch header in codemaker 2011-11-27 12:59:38 -06:00
Julien Nabet
933e22880b Remove "using namespace ::rtl" 2011-03-02 21:53:12 +01:00
Sebastian Spaeth
a715e1b3d0 Add vim/emacs modelines to all source files
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-14 17:04:31 +02:00
Jens-Heiner Rechtien
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
0826cf5370 INTEGRATION: CWS changefileheader (1.9.38); FILE MERGED
2008/03/31 07:22:55 rt 1.9.38.1: #i87441# Change license header to LPGL v3.
2008-04-11 11:19:01 +00:00
Oliver Bolte
321e0a5b5c INTEGRATION: CWS pchfix02 (1.8.16); FILE MERGED
2006/09/01 17:19:24 kaib 1.8.16.1: #i68856# Added header markers and pch files
2006-09-17 02:39:32 +00:00
Vladimir Glazounov
5d8992a058 INTEGRATION: CWS jsc3 (1.7.16); FILE MERGED
2006/01/20 13:02:25 jsc 1.7.16.1: #i56247# unify include guards
2006-03-15 08:16:04 +00:00
Rüdiger Timm
d8af3133b5 INTEGRATION: CWS ooo19126 (1.6.12); FILE MERGED
2005/09/05 17:28:07 rt 1.6.12.1: #i54170# Change license header: remove SISSL
2005-09-08 01:17:32 +00:00
Rüdiger Timm
4e2de6f4dc INTEGRATION: CWS sdksample (1.4.14); FILE MERGED
2004/11/02 17:14:39 jsc 1.4.14.2: RESYNC: (1.4-1.5); FILE MERGED
2004/07/05 11:03:47 jsc 1.4.14.1: #i30954# use registry keys directly instead of typenames, #116780# genrate full scope
2005-01-31 14:29:29 +00:00
Rüdiger Timm
0b48739798 INTEGRATION: CWS valgrind02 (1.4.28); FILE MERGED
2004/10/11 17:28:31 mhu 1.4.28.1: #i35209# Adapted to use SAL_IMPLEMENT_MAIN_WITH_ARGS() macro instead of plain main() function.
2004-10-28 15:20:05 +00:00
Oliver Bolte
b4a160e2e9 INTEGRATION: CWS sb18 (1.3.82); FILE MERGED
2004/04/28 08:59:42 sb 1.3.82.2: #i21150# Simplified TypeDependency to Dependencies.
2004/04/22 08:23:25 sb 1.3.82.1: #i21150# Refactord GeneratedTypeSet out of TypeDependency; expanded unotypesort.hxx to unotype.hxx.
2004-06-04 02:13:45 +00:00
Daniel Boelzle
73d9da9960 #101918# supporting -X option now 2002-07-31 11:46:45 +00:00
Philipp Lohmann
1b9705daac rtl string api changes 2001-05-10 13:16:41 +00:00
Jens-Heiner Rechtien
b525a3115f initial import 2000-09-18 14:29:57 +00:00