diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:03:16 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-21 13:19:17 +0100 |
commit | 01baeab99890e5650b3dabc15f8d900490a5a133 (patch) | |
tree | 64a1b30b20a53262605312fff4d035876fc7c811 /include/registry | |
parent | tdf#123936 Formatting files in module starmath with clang-format (diff) | |
download | core-01baeab99890e5650b3dabc15f8d900490a5a133.tar.gz core-01baeab99890e5650b3dabc15f8d900490a5a133.zip |
tdf#123936 Formatting files in module include with clang-format
Change-Id: I0507dd797cd5a35e0ae14f4b69ee4e172d08a71a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105681
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'include/registry')
-rw-r--r-- | include/registry/refltype.hxx | 4 | ||||
-rw-r--r-- | include/registry/regdllapi.h | 4 | ||||
-rw-r--r-- | include/registry/regtype.h | 16 | ||||
-rw-r--r-- | include/registry/types.hxx | 47 |
4 files changed, 40 insertions, 31 deletions
diff --git a/include/registry/refltype.hxx b/include/registry/refltype.hxx index a9d1da0dcf4d..0ca5803cd11c 100644 --- a/include/registry/refltype.hxx +++ b/include/registry/refltype.hxx @@ -43,7 +43,7 @@ class RTConstValue { public: /// stores the type of the constant value. - RTValueType m_type; + RTValueType m_type; /// stores the value of the constant. RTConstValueUnion m_value; @@ -70,7 +70,7 @@ struct RTUik }; /// specifies the calling convention for type reader/writer api -#define TYPEREG_CALLTYPE SAL_CALL +#define TYPEREG_CALLTYPE SAL_CALL #endif diff --git a/include/registry/regdllapi.h b/include/registry/regdllapi.h index e4904e50f0c5..603eea11dba8 100644 --- a/include/registry/regdllapi.h +++ b/include/registry/regdllapi.h @@ -23,9 +23,9 @@ #include <sal/types.h> #if defined(REG_DLLIMPLEMENTATION) -#define REG_DLLPUBLIC SAL_DLLPUBLIC_EXPORT +#define REG_DLLPUBLIC SAL_DLLPUBLIC_EXPORT #else -#define REG_DLLPUBLIC SAL_DLLPUBLIC_IMPORT +#define REG_DLLPUBLIC SAL_DLLPUBLIC_IMPORT #endif #endif // INCLUDED_REGISTRY_REGDLLAPI_H diff --git a/include/registry/regtype.h b/include/registry/regtype.h index 218e915f5edd..89fdcc940aaf 100644 --- a/include/registry/regtype.h +++ b/include/registry/regtype.h @@ -24,13 +24,13 @@ #include <o3tl/typed_flags_set.hxx> /// defines the type of a registry handle used in the C API. -typedef void* RegHandle; +typedef void* RegHandle; /// defines the type of a registry key handle used in the C API. -typedef void* RegKeyHandle; +typedef void* RegKeyHandle; /// defines the type of a registry key value handle used in the C API. -typedef void* RegValue; +typedef void* RegValue; /** defines the open/access mode of the registry. @@ -40,12 +40,14 @@ typedef void* RegValue; */ enum class RegAccessMode { - READONLY = 0x0001, /// This mode allows readonly access. - READWRITE = 0x0002 /// This mode allows read and write access. + READONLY = 0x0001, /// This mode allows readonly access. + READWRITE = 0x0002 /// This mode allows read and write access. }; namespace o3tl { - template<> struct typed_flags<RegAccessMode> : is_typed_flags<RegAccessMode, 0x03> {}; +template <> struct typed_flags<RegAccessMode> : is_typed_flags<RegAccessMode, 0x03> +{ +}; } /** defines the type of a key value. @@ -132,7 +134,7 @@ enum class SAL_DLLPUBLIC_RTTI RegError }; /// specify the calling convention for the registry API -#define REGISTRY_CALLTYPE SAL_CALL +#define REGISTRY_CALLTYPE SAL_CALL #endif diff --git a/include/registry/types.hxx b/include/registry/types.hxx index babebbcec79b..a9763f5ea6bb 100644 --- a/include/registry/types.hxx +++ b/include/registry/types.hxx @@ -28,7 +28,8 @@ The general structure of a binary type blob is always the same. It depends on the typeclass which parts of the blob are filled with data or not. */ -enum RTTypeClass { +enum RTTypeClass +{ /** specifies that the structure of the given blob is unknown and can't be read. */ @@ -131,37 +132,37 @@ enum RTTypeClass { */ enum class RTFieldAccess { - NONE = 0x0000, + NONE = 0x0000, /// specifies an unknown flag - INVALID = 0x0000, + INVALID = 0x0000, /// specifies a readonly property/attribute - READONLY = 0x0001, + READONLY = 0x0001, /// specifies a property as optional that means that it must not be implemented. - OPTIONAL = 0x0002, + OPTIONAL = 0x0002, /// @see com::sun::star::beans::PropertyAttribute - MAYBEVOID = 0x0004, + MAYBEVOID = 0x0004, /// @see com::sun::star::beans::PropertyAttribute - BOUND = 0x0008, + BOUND = 0x0008, /// @see com::sun::star::beans::PropertyAttribute CONSTRAINED = 0x0010, /// @see com::sun::star::beans::PropertyAttribute - TRANSIENT = 0x0020, + TRANSIENT = 0x0020, /// @see com::sun::star::beans::PropertyAttribute MAYBEAMBIGUOUS = 0x0040, /// @see com::sun::star::beans::PropertyAttribute MAYBEDEFAULT = 0x0080, /// @see com::sun::star::beans::PropertyAttribute - REMOVABLE = 0x0100, + REMOVABLE = 0x0100, /// @see com::sun::star::beans::PropertyAttribute - ATTRIBUTE = 0x0200, + ATTRIBUTE = 0x0200, /// specifies that the field is a property - PROPERTY = 0x0400, + PROPERTY = 0x0400, /// specifies that the field is a constant or enum value - CONST = 0x0800, + CONST = 0x0800, /// specifies that the property/attribute has read/write access - READWRITE = 0x1000, + READWRITE = 0x1000, /// only to describe a union default label - DEFAULT = 0x2000, + DEFAULT = 0x2000, /** Indicates that a member of a polymorphic struct type template is of a parameterized type. @@ -185,14 +186,17 @@ enum class RTFieldAccess }; namespace o3tl { - template<> struct typed_flags<RTFieldAccess> : is_typed_flags<RTFieldAccess, 0xffff> {}; +template <> struct typed_flags<RTFieldAccess> : is_typed_flags<RTFieldAccess, 0xffff> +{ +}; } /** specifies the type of a field value. A field can have a value if it represents a constant or an enum value. */ -enum RTValueType { +enum RTValueType +{ RT_TYPE_NONE, RT_TYPE_BOOL, RT_TYPE_BYTE, @@ -220,7 +224,7 @@ union RTConstValueUnion { sal_uInt64 aUHyper; float aFloat; double aDouble; - sal_Unicode const * aString; + sal_Unicode const* aString; }; /** specifies the mode of a method. @@ -228,7 +232,8 @@ union RTConstValueUnion { A method can be synchron or asynchron (oneway). The const attribute for methods was removed so that the const values are deprecated. */ -enum class RTMethodMode { +enum class RTMethodMode +{ /// indicates an invalid mode INVALID, @@ -266,7 +271,8 @@ enum class RTMethodMode { There are three parameter modes which have impact of the handling of the parameter in the UNO bridges and the UNO code generation. */ -enum RTParamMode { +enum RTParamMode +{ /// indicates an invalid parameter mode RT_PARAM_INVALID = 0, @@ -294,7 +300,8 @@ enum RTParamMode { /** specifies the type of a reference used in a service description. */ -enum class RTReferenceType { +enum class RTReferenceType +{ /// the reference type is unknown INVALID, |