diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:00:40 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-13 15:19:47 +0100 |
commit | 9c9a8229201bd134df923420c97db84688a7813c (patch) | |
tree | d9f29095ddeeefc83f0fbcb4c01601b4e0f4b2d3 /idlc/inc | |
parent | 7721e7a79733a5ac5e029869eeb88638ec00102e (diff) |
tdf#123936 Formatting files in module idl with clang-format
Change-Id: I0a2681218773288c14b6faf98dd0bb8a7dbac56d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105679
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'idlc/inc')
-rw-r--r-- | idlc/inc/astconstants.hxx | 3 | ||||
-rw-r--r-- | idlc/inc/astenum.hxx | 8 | ||||
-rw-r--r-- | idlc/inc/astexception.hxx | 5 | ||||
-rw-r--r-- | idlc/inc/astmodule.hxx | 9 | ||||
-rw-r--r-- | idlc/inc/astneeds.hxx | 7 | ||||
-rw-r--r-- | idlc/inc/astobserves.hxx | 9 | ||||
-rw-r--r-- | idlc/inc/astscope.hxx | 21 | ||||
-rw-r--r-- | idlc/inc/astsequence.hxx | 17 | ||||
-rw-r--r-- | idlc/inc/aststack.hxx | 4 | ||||
-rw-r--r-- | idlc/inc/asttype.hxx | 3 |
10 files changed, 44 insertions, 42 deletions
diff --git a/idlc/inc/astconstants.hxx b/idlc/inc/astconstants.hxx index cf97e2cc6971..6add23a45359 100644 --- a/idlc/inc/astconstants.hxx +++ b/idlc/inc/astconstants.hxx @@ -26,7 +26,8 @@ class AstConstants final : public AstModule public: AstConstants(const OString& name, AstScope* pScope) : AstModule(NT_constants, name, pScope) - {} + { + } }; #endif // INCLUDED_IDLC_INC_ASTCONSTANTS_HXX diff --git a/idlc/inc/astenum.hxx b/idlc/inc/astenum.hxx index 085a397b0f22..dc89d430adb2 100644 --- a/idlc/inc/astenum.hxx +++ b/idlc/inc/astenum.hxx @@ -23,23 +23,21 @@ #include "astscope.hxx" #include "astconstant.hxx" -class AstEnum final : public AstType - , public AstScope +class AstEnum final : public AstType, public AstScope { public: AstEnum(const OString& name, AstScope* pScope); virtual ~AstEnum() override; - sal_Int32 getEnumValueCount() - { return m_enumValueCount++; } + sal_Int32 getEnumValueCount() { return m_enumValueCount++; } AstConstant* checkValue(AstExpression* pExpr); virtual bool dump(RegistryKey& rKey) override; private: - sal_Int32 m_enumValueCount; + sal_Int32 m_enumValueCount; }; #endif // INCLUDED_IDLC_INC_ASTENUM_HXX diff --git a/idlc/inc/astexception.hxx b/idlc/inc/astexception.hxx index 70c1ffc9c706..6c2d549bc9a2 100644 --- a/idlc/inc/astexception.hxx +++ b/idlc/inc/astexception.hxx @@ -24,9 +24,10 @@ class AstException final : public AstStruct { public: - AstException(const OString& name, AstException const * pBaseType, AstScope* pScope) + AstException(const OString& name, AstException const* pBaseType, AstScope* pScope) : AstStruct(NT_exception, name, pBaseType, pScope) - {} + { + } }; #endif // INCLUDED_IDLC_INC_ASTEXCEPTION_HXX diff --git a/idlc/inc/astmodule.hxx b/idlc/inc/astmodule.hxx index df50ac95df5f..6178cfbb63da 100644 --- a/idlc/inc/astmodule.hxx +++ b/idlc/inc/astmodule.hxx @@ -22,18 +22,19 @@ #include "astdeclaration.hxx" #include "astscope.hxx" -class AstModule : public AstDeclaration - , public AstScope +class AstModule : public AstDeclaration, public AstScope { public: AstModule(const OString& name, AstScope* pScope) : AstDeclaration(NT_module, name, pScope) , AstScope(NT_module) - {} + { + } AstModule(NodeType type, const OString& name, AstScope* pScope) : AstDeclaration(type, name, pScope) , AstScope(type) - {} + { + } virtual bool dump(RegistryKey& rKey) override; }; diff --git a/idlc/inc/astneeds.hxx b/idlc/inc/astneeds.hxx index d0914222a091..13d2dbbef197 100644 --- a/idlc/inc/astneeds.hxx +++ b/idlc/inc/astneeds.hxx @@ -27,10 +27,11 @@ public: AstNeeds(AstService* pRealService, const OString& name, AstScope* pScope) : AstDeclaration(NT_needs, name, pScope) , m_pRealService(pRealService) - {} + { + } + + AstService* getRealService() { return m_pRealService; } - AstService* getRealService() - { return m_pRealService; } private: AstService* m_pRealService; }; diff --git a/idlc/inc/astobserves.hxx b/idlc/inc/astobserves.hxx index 54da873b5631..11bb5a6770b3 100644 --- a/idlc/inc/astobserves.hxx +++ b/idlc/inc/astobserves.hxx @@ -27,12 +27,13 @@ public: AstObserves(AstInterface* pRealInterface, const OString& name, AstScope* pScope) : AstDeclaration(NT_observes, name, pScope) , m_pRealInterface(pRealInterface) - {} + { + } + + AstInterface* getRealInterface() { return m_pRealInterface; } - AstInterface* getRealInterface() - { return m_pRealInterface; } private: - AstInterface* m_pRealInterface; + AstInterface* m_pRealInterface; }; #endif // INCLUDED_IDLC_INC_ASTOBSERVES_HXX diff --git a/idlc/inc/astscope.hxx b/idlc/inc/astscope.hxx index a258011c9545..5f6ed53f8df1 100644 --- a/idlc/inc/astscope.hxx +++ b/idlc/inc/astscope.hxx @@ -31,17 +31,13 @@ public: AstScope(NodeType nodeType); virtual ~AstScope(); - NodeType getScopeNodeType() const - { return m_nodeType; } + NodeType getScopeNodeType() const { return m_nodeType; } AstDeclaration* addDeclaration(AstDeclaration* pDecl); - sal_uInt32 nMembers() const - { return static_cast<sal_uInt32>(m_declarations.size()); } - DeclList::const_iterator getIteratorBegin() const - { return m_declarations.begin(); } - DeclList::const_iterator getIteratorEnd() const - { return m_declarations.end(); } + sal_uInt32 nMembers() const { return static_cast<sal_uInt32>(m_declarations.size()); } + DeclList::const_iterator getIteratorBegin() const { return m_declarations.begin(); } + DeclList::const_iterator getIteratorEnd() const { return m_declarations.end(); } sal_uInt16 getNodeCount(NodeType nType) const; // Name look up mechanism @@ -54,15 +50,14 @@ public: // Look up a predefined type by its ExprType AstDeclaration* lookupPrimitiveType(ExprType type); - AstDeclaration* lookupForAdd(AstDeclaration const * pDecl) const; + AstDeclaration* lookupForAdd(AstDeclaration const* pDecl) const; protected: - AstDeclaration const * getLast() const - { return m_declarations.back(); } + AstDeclaration const* getLast() const { return m_declarations.back(); } private: - DeclList m_declarations; - NodeType m_nodeType; + DeclList m_declarations; + NodeType m_nodeType; }; #endif // INCLUDED_IDLC_INC_ASTSCOPE_HXX diff --git a/idlc/inc/astsequence.hxx b/idlc/inc/astsequence.hxx index 41024894f47a..d74f8320f627 100644 --- a/idlc/inc/astsequence.hxx +++ b/idlc/inc/astsequence.hxx @@ -24,20 +24,23 @@ class AstSequence final : public AstType { public: - AstSequence(AstType const * pMemberType, AstScope* pScope) - : AstType(NT_sequence, OStringLiteral("[]")+pMemberType->getScopedName(), pScope) + AstSequence(AstType const* pMemberType, AstScope* pScope) + : AstType(NT_sequence, OStringLiteral("[]") + pMemberType->getScopedName(), pScope) , m_pMemberType(pMemberType) - {} + { + } - AstType const * getMemberType() const - { return m_pMemberType; } + AstType const* getMemberType() const { return m_pMemberType; } virtual bool isUnsigned() const override - { return m_pMemberType != nullptr && m_pMemberType->isUnsigned(); } + { + return m_pMemberType != nullptr && m_pMemberType->isUnsigned(); + } virtual const char* getRelativName() const override; + private: - AstType const * m_pMemberType; + AstType const* m_pMemberType; mutable std::optional<OString> m_xRelativName; }; diff --git a/idlc/inc/aststack.hxx b/idlc/inc/aststack.hxx index bf3575676aa3..d36bd4e48e40 100644 --- a/idlc/inc/aststack.hxx +++ b/idlc/inc/aststack.hxx @@ -30,7 +30,7 @@ public: AstStack(); ~AstStack(); - sal_uInt32 depth() const { return m_stack.size();} + sal_uInt32 depth() const { return m_stack.size(); } AstScope* top(); AstScope* bottom(); AstScope* nextToTop(); @@ -40,7 +40,7 @@ public: void clear(); private: - std::vector<AstScope*> m_stack; + std::vector<AstScope*> m_stack; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/idlc/inc/asttype.hxx b/idlc/inc/asttype.hxx index 7c173197ef8e..8627429cd01a 100644 --- a/idlc/inc/asttype.hxx +++ b/idlc/inc/asttype.hxx @@ -26,7 +26,8 @@ class AstType : public AstDeclaration public: AstType(const NodeType type, const OString& name, AstScope* pScope) : AstDeclaration(type, name, pScope) - {} + { + } virtual bool isUnsigned() const { return false; } }; |