diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-09-14 17:26:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-06-10 17:15:49 +0200 |
commit | a8485d558fab53291e2530fd9a1be581c1628deb (patch) | |
tree | dff1f2885f954b9da2d3d2dbb9adc20b5b69c69c /idlc/source/fehelper.cxx | |
parent | 611fe67394820e589e86f543c614632fc273eb5e (diff) |
[API CHANGE] Remove deprecated idlc and regmerge from the SDK
* Client code must replace uses of idlc and regmerge with uses of unoidl-write,
see the changes to odk/examples/ and ure/source/uretext/ in
40f2aee6584eafcf4cd1d95fcf1f775e5435440d "Provide unoidl-write also for the
SDK" for examples.
* The new types.rdb format is not compatible with LibreOffice < 4.1. Clients
generating extensions containing such files are advised to use appropriate
LibreOffice-minimal-version elements.
* For compatibility with old extensions, reading the legacy types.rdb format is
still supported.
* The SDK no longer ships an idl/ sub-directory containing the udkap and offapi
.idl files (as, unlike idlc, unoidl-write does not need them).
odk/config/cfgWin.js had to be adapted to look (somewhat arbitrarily) for an
examples/ sub-directory instead of idl/ when checking for "an sdk folder".
gb_UnoApi_package_idlfiles became unused and has been removed.
* The idlc and regmerge executables have been removed. Module idlc has been
removed except for idlc/test/parser/, which is also used by
CustomTarget_unoidl/unoidl-write_test, and which may eventually be moved into
module unoidl. Module external/ucpp and the corresponding configure options
have also been removed.
Change-Id: I42a0231699b863b5ebe2bee63bc32c8f79278cc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122363
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idlc/source/fehelper.cxx')
-rw-r--r-- | idlc/source/fehelper.cxx | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx deleted file mode 100644 index 607f5a145677..000000000000 --- a/idlc/source/fehelper.cxx +++ /dev/null @@ -1,102 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include <fehelper.hxx> -#include <errorhandler.hxx> -#include <idlc.hxx> - -FeDeclarator::FeDeclarator(const OString& name) - : m_name(name) -{ -} - -FeDeclarator::~FeDeclarator() -{ -} - -bool FeDeclarator::checkType(AstDeclaration const * type) const -{ - OString tmp(m_name); - sal_Int32 count = m_name.lastIndexOf( ':' ); - if( count != -1 ) - tmp = m_name.copy( count+1 ); - - return tmp != type->getLocalName(); -} - -AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) -{ - if ( pDecl == nullptr ) - { - return nullptr; - } - if ( !pDecl->isType() ) - { - ErrorHandler::noTypeError(pDecl); - return nullptr; - } - return static_cast<const AstType*>(pDecl); -} - -FeInheritanceHeader::FeInheritanceHeader( - NodeType nodeType, OString* pName, OString const * pInherits, - std::vector< OString > const * typeParameters) - : m_nodeType(nodeType) - , m_pName(pName) - , m_pInherits(nullptr) -{ - if (typeParameters != nullptr) { - m_typeParameters = *typeParameters; - } - initializeInherits(pInherits); -} - -void FeInheritanceHeader::initializeInherits(OString const * pInherits) -{ - if ( !pInherits ) - return; - - AstScope* pScope = idlc()->scopes()->topNonNull(); - AstDeclaration* pDecl = pScope->lookupByName(*pInherits); - if ( pDecl ) - { - AstDeclaration const * resolved = resolveTypedefs(pDecl); - if ( resolved->getNodeType() == getNodeType() - && (resolved->getNodeType() != NT_interface - || static_cast< AstInterface const * >( - resolved)->isDefined()) ) - { - if ( ErrorHandler::checkPublished( pDecl ) ) - { - m_pInherits = pDecl; - } - } - else - { - ErrorHandler::inheritanceError( - getNodeType(), getName(), pDecl); - } - } - else - { - ErrorHandler::lookupError(*pInherits); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |