Skip to content

Update Document.h #1689

Update Document.h

Update Document.h #1689

Triggered via push February 4, 2025 13:14
Status Success
Total duration 1h 14m 21s
Artifacts 8

CI_master.yml

on: push
Prepare  /  Prepare
5s
Prepare / Prepare
Matrix: Pixi / build_with_pixi
WrapUp  /  WrapUp
6s
WrapUp / WrapUp
Fit to window
Zoom out
Zoom in

Annotations

1 error and 51 warnings
Lint / Lint
Process completed with exit code 1.
Lint / Lint: src/App/Document.h#L23
#ifndef header guard has wrong style, please use: SRC_APP_DOCUMENT_H_ [build/header_guard] [5]
Lint / Lint: src/App/Document.h#L666
#endif line should be "#endif // SRC_APP_DOCUMENT_H_" [build/header_guard] [5]
Lint / Lint: src/App/Document.h#L215
Is this a non-const reference? If so, make const or use a pointer: Base::XMLReader& reader [runtime/references] [2]
Lint / Lint: src/App/Document.h#L318
Use int16_t/int64_t/etc, rather than the C type long [runtime/int] [4]
Lint / Lint: src/App/Document.h#L539
Is this a non-const reference? If so, make const or use a pointer: std::set<DocumentObject*>& links [runtime/references] [2]
Lint / Lint: src/App/Document.h#L590
Is this a non-const reference? If so, make const or use a pointer: Base::XMLReader& reader [runtime/references] [2]
Lint / Lint: src/App/Document.h#L591
Is this a non-const reference? If so, make const or use a pointer: Base::Writer& writer [runtime/references] [2]
Lint / Lint: src/App/Document.h#L516
Add #include <utility> for pair<> [build/include_what_you_use] [4]
Lint / Lint: src/App/Document.h#L634
Add #include <list> for list<> [build/include_what_you_use] [4]
Lint / Lint: src/App/Document.h#L640
Add #include <string> for string [build/include_what_you_use] [4]
Lint / Lint: src/CXX/Python3/Objects.hxx#L1021
Pass small and trivially-copyable type by value (const Py_complex &) [-Wclazy-function-args-by-value]
Lint / Lint: src/CXX/Python3/Objects.hxx#L1088
Py::seqref has copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
Lint / Lint: src/CXX/Python3/Objects.hxx#L1437
Py::SeqBase::iterator has copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
Lint / Lint: src/CXX/Python3/Objects.hxx#L1596
Py::SeqBase::const_iterator has copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
Lint / Lint: src/CXX/Python3/Objects.hxx#L2932
Py::MapBase::iterator has copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
Lint / Lint: src/CXX/Python3/Objects.hxx#L2970
Missing reference on non-trivial type (class Py::List) [-Wclazy-function-args-by-ref]
Lint / Lint: src/CXX/Python3/Objects.hxx#L3051
Py::MapBase::const_iterator has copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
Lint / Lint: src/CXX/Python3/Objects.hxx#L3075
Missing reference on non-trivial type (class Py::List) [-Wclazy-function-args-by-ref]
Lint / Lint: src/CXX/Python3/Objects.hxx#L3542
Pass small and trivially-copyable type by value (const class Py::BaseException &) [-Wclazy-function-args-by-value]
Lint / Lint: src/CXX/Python3/Objects.hxx#L3553
Pass small and trivially-copyable type by value (const class Py::BaseException &) [-Wclazy-function-args-by-value]
Lint / Lint: src/App/Document.h#L58
class 'Document' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
Lint / Lint: src/App/Document.h#L64
enum 'Status' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]
Lint / Lint: src/App/Document.h#L207
enum 'ExportStatus' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]
Lint / Lint: src/App/Document.h#L465
enum 'DependencyOption' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]
Pixi / build_with_pixi (macos-latest): src/3rdParty/libE57Format/src/SourceDestBufferImpl.cpp#L491
implicit conversion from 'const int64_t' (aka 'const long long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion]
Pixi / build_with_pixi (macos-latest): src/3rdParty/libE57Format/src/SourceDestBufferImpl.cpp#L203
implicit conversion from 'const int32_t' (aka 'const int') to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
Pixi / build_with_pixi (macos-latest): src/3rdParty/libE57Format/src/SourceDestBufferImpl.cpp#L215
implicit conversion from 'const uint32_t' (aka 'const unsigned int') to 'float' changes value from 4294967295 to 4294967296 [-Wimplicit-const-int-float-conversion]
Pixi / build_with_pixi (macos-latest): src/3rdParty/libE57Format/src/SourceDestBufferImpl.cpp#L227
implicit conversion from 'const int64_t' (aka 'const long long') to 'float' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion]
Pixi / build_with_pixi (macos-latest): src/3rdParty/libE57Format/src/SourceDestBufferImpl.cpp#L227
implicit conversion from 'const int64_t' (aka 'const long long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion]
Pixi / build_with_pixi (macos-latest): src/CXX/Python3/Objects.hxx#L1787
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L1787
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L1788
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L1983
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L2029
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L1992
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Pixi / build_with_pixi (ubuntu-latest): src/CXX/Python3/Objects.hxx#L2014
'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
Ubuntu_20-04 / Build
Input 'save-always' has been deprecated with message: save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https://github.com/actions/cache/tree/main/save#always-save-cache for more details.
Ubuntu_20-04 / Build
Input 'save-always' has been deprecated with message: save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https://github.com/actions/cache/tree/main/save#always-save-cache for more details.
Pixi / build_with_pixi (windows-latest)
No files were found with the provided path: D:\a\FreeCAD\FreeCAD/logs/ /var/crash/*FreeCAD*. No artifacts will be uploaded.
Pixi / build_with_pixi (windows-latest)
'=': conversion from 'size_t' to '_Ty', possible loss of data
Pixi / build_with_pixi (windows-latest)
No files were found with the provided path: D:\a\FreeCAD\FreeCAD/report/Pixi-13136294273-windows-latest-report.md. No artifacts will be uploaded.
Windows / Build
Input 'save-always' has been deprecated with message: save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https://github.com/actions/cache/tree/main/save#always-save-cache for more details.
Windows / Build
Input 'save-always' has been deprecated with message: save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https://github.com/actions/cache/tree/main/save#always-save-cache for more details.

Artifacts

Produced during runtime
Name Size
Lint-13136294273-Logs
7.32 KB
Pixi-13136294273-macos-latest-Logs
45.7 KB
Pixi-13136294273-macos-latest-report.md
406 Bytes
Pixi-13136294273-ubuntu-latest-Logs
45.9 KB
Pixi-13136294273-ubuntu-latest-report.md
588 Bytes
Prepare-13136294273-Logs
3.68 KB
Ubuntu_20-04-13136294273-Logs
180 KB
Windows-13136294273-Logs
1.99 MB