Commit Graph

33 Commits

Author SHA1 Message Date
Mike Kaganski
dacde2c039 Revert "Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 instead"
This reverts commit 84662e9030.

Change-Id: I1cc98d3201390609ae3615baa8e92c926cdcde9a
Reviewed-on: https://gerrit.libreoffice.org/70294
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-04-05 16:13:14 +02:00
Mike Kaganski
84662e9030 Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 instead
These helpers are used in code generator code; so any invalid UTF-8
or UTF-16 in the conversion is programmer's error which needs fixing.
Thus, the behavior of toUtf8/fromUtf8 which asserts the validity is
fine here.

Change-Id: I3004e233c9de59f8e348455f1f04d23e8c51ed3d
Reviewed-on: https://gerrit.libreoffice.org/70249
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-04-04 20:36:11 +02:00
Stephan Bergmann
5206992e6e Some uses of C++17 class template argument deduction
Change-Id: I47c469c0fcdff41d83729be9489c946e81ef3686
Reviewed-on: https://gerrit.libreoffice.org/68020
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-19 17:39:16 +01:00
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
f36c2939be coverity#1338254 Uncaught exception
Change-Id: Ie7cf971b3d0c67f33a1b82ff12a8e25506bf0cd0
2015-11-06 12:15:56 +00:00
Caolán McNamara
b536f9ae62 coverity#441989 Uncaught exception
Change-Id: I579bfc6f4a57aea49e2b023917d0dbd7c3db6c88
2014-10-24 09:24:51 +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
54dd4ae0dd Add cppumaker -nD "no dependent types are generated"
...just like javamaker.

Change-Id: I7634a65a948ca7abdb7ad75d0aeca8becb38ab87
2013-09-12 15:28:11 +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
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
c7c1ff3839 INTEGRATION: CWS changefileheader (1.10.38); FILE MERGED
2008/03/31 07:22:53 rt 1.10.38.1: #i87441# Change license header to LPGL v3.
2008-04-11 11:07:07 +00:00
Oliver Bolte
0490381347 INTEGRATION: CWS pchfix02 (1.9.16); FILE MERGED
2006/09/01 17:19:22 kaib 1.9.16.1: #i68856# Added header markers and pch files
2006-09-17 02:36:23 +00:00
Vladimir Glazounov
eaf58ac096 INTEGRATION: CWS jsc3 (1.8.16); FILE MERGED
2006/01/20 13:02:20 jsc 1.8.16.1: #i56247# unify include guards
2006-03-15 08:12:44 +00:00
Rüdiger Timm
8127855da7 INTEGRATION: CWS ooo19126 (1.7.12); FILE MERGED
2005/09/05 17:28:00 rt 1.7.12.1: #i54170# Change license header: remove SISSL
2005-09-08 01:11:34 +00:00
Rüdiger Timm
53caa6e87c INTEGRATION: CWS sdksample (1.4.14); FILE MERGED
2004/11/02 17:14:05 jsc 1.4.14.4: RESYNC: (1.5-1.6); FILE MERGED
2004/08/12 07:19:56 jsc 1.4.14.3: RESYNC: (1.4-1.5); FILE MERGED
2004/07/07 09:52:50 jsc 1.4.14.2: #i30954# adjusted to genrate dependent types fro cppu
2004/07/05 11:01:53 jsc 1.4.14.1: #i30954# use registry keys directly instead of typenames
2005-01-31 14:28:41 +00:00
Rüdiger Timm
3d2d1e551c INTEGRATION: CWS valgrind02 (1.5.16); FILE MERGED
2004/10/11 17:28:30 mhu 1.5.16.1: #i35209# Adapted to use SAL_IMPLEMENT_MAIN_WITH_ARGS() macro instead of plain main() function.
2004-10-28 15:19:27 +00:00
Rüdiger Timm
ccd8becb5e INTEGRATION: CWS sb20 (1.4.4); FILE MERGED
2004/07/01 07:43:26 sb 1.4.4.1: #i30949# Fixed generation of dependent types.
2004-07-23 13:45:39 +00:00
Oliver Bolte
de02c2eba7 INTEGRATION: CWS sb18 (1.3.82); FILE MERGED
2004/04/28 09:03:38 sb 1.3.82.2: #i21150# Simplified TypeDependency to Dependencies.
2004/04/22 08:26:37 sb 1.3.82.1: #i21150# Refactord GeneratedTypeSet out of TypeDependency.
2004-06-04 02:11:44 +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