Chris Hennes
f5806841b6
Merge pull request #19907 from benj5378/getAttribute
...
Base: make getAttribute template
2025-05-12 10:39:55 -05:00
Benjamin Bræstrup Sayoc
6786af6ef9
Everywhere: clean up getAttribute conversions
2025-05-09 15:54:57 +02:00
Benjamin Bræstrup Sayoc
492b8312b3
Base: make getAttribute template
2025-05-09 15:54:57 +02:00
bofdahof
998f4e4d45
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Benjamin Nauck
e8d836f390
Robots: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
Pieter Hijma
aa768e2a90
[Doc] Fix Robot kdl documentation issues
2025-03-24 16:33:54 +01:00
tritao
6c2c6847eb
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Benjamin Bræstrup Sayoc
755229df23
Build: suppress warnings from 3rd party libraries
...
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.
https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00
Joao Matos
cc6ffb44de
Core: Move PyCXX library to src/3rdParty.
2025-02-24 16:36:06 +00:00
Joao Matos
27ebc68a11
CMake: Modernize build files using outdated Python variables.
2025-02-16 10:21:26 -06:00
tritao
9636068460
Base: Move zipios library to 3rdParty folder.
2025-02-14 13:08:28 -06:00
wmayer
d5db41bb06
Robot: Use Base::toRadians to convert degree to radian
2024-10-22 22:37:01 -05:00
luzpaz
9a1f487cdb
Fix various typos throughout the codebase
2024-07-08 17:19:20 -05:00
wmayer
4185605d5e
clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
2024-05-29 13:37:07 +02:00
mosfet80
2807ceff8e
[MOD] removed multiple pi definition
...
removed multiple pi definition
2024-04-20 11:30:38 +02:00
Chris Hennes
fa65438556
Core: Enable compiling with MSVC /permissive- ( #11014 )
...
* Base: Fixes for MSVC permissive-
* App: Fixes for MSVC permissive-
* Gui: Fixes for MSVC permissive-
* Main: Fixes for MSVC permissive-
* Fem: Fixes for MSVC permissive-
* Material: Fixes for MSVC permissive-
* Part: Fixes for MSVC permissive-
* Mesh: Fixes for MSVC permissive-
* Points: Fixes for MSVC permissive-
* Robot: Fixes for MSVC permissive-
* TechDraw: Fixes for MSVC permissive-
* Path: Fixes for MSVC permissive-
* Core; Changes per review comments
* TD: Revision from wandererfan
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 17:37:29 +01:00
Florian Foinant-Willig
a82a9482ce
Robot: modernize type checking
2023-10-23 18:08:27 +02:00
liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
pre-commit-ci[bot]
222a2520b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
3acb817ee7
Robot: Apply clang format
2023-09-11 15:58:24 +02:00
Chris Hennes
079617a58e
Robot: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
c0323a173d
Robot: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
e3809702d2
Robot: modernize C++: use equals default
2023-08-22 12:49:17 +02:00
wmayer
19faa4727d
Robot: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
6bb6c0c886
Robot: modernize C++: use range-based for loop
2023-08-15 18:40:42 +02:00
wmayer
0af4990817
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
39e53e5eb0
Mods: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
wmayer
ccca592c04
Robot: modernize C++: use override
2023-08-04 17:09:53 +02:00
Uwe
0d92058fb8
[Robot] App: enable precompiled header
2022-12-09 03:29:30 +01:00
Uwe
c9f42ebcd7
[Robot] App: remove unused includes
...
- also some sorting
2022-12-07 03:27:09 +01:00
wmayer
a899f078bd
CMake: [skip ci] remove trailing whitespaces
2022-08-24 07:46:07 +02:00
Jonas Bähr
a1776d3e74
Fix build on MacOS-X 10.14: missing Xerces include dir
...
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:
In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
#include <xercesc/util/XercesDefs.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit 96ad045b91
- Image: commit dde71a21d5
- Import: commit c9d28b542f
- Inspection: commit d41f55f382
- Mesh: commit 19072b0538
- Part: commit fe213a48f0
- PartDesign: commit b037d8e240
- Path: commit f23fa31f42
- Points: commit bec723ba17
- Raytracing: commit 08d4ac63a3
- ReverseEnginering: commit 5ca787cb0e
- Robot: commit bad4809a1c
- Sketcher: commit 3c96daf105
- Spreadsheet: commit 66e8a2bef3
- Start: commit c9dee5e70a
- Surface: commit 6b04215be6
- TechDraw: commit 5e6699e48d
- Test: commit ea5b45b92c
- Web: commit ee6d631531
2022-08-24 07:40:04 +02:00
wmayer
5014bab534
Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream
2022-08-21 12:46:53 +02:00
wmayer
2062f9ce87
clang: fix warnings [-Winconsistent-missing-override]
2022-08-09 17:36:25 +02:00
berniev
ddafb98813
Mod: Use override etc 2
2022-08-09 12:52:26 +02:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
b796a0d376
Mod: use empty
2022-08-06 19:30:13 +02:00
wmayer
bbe617614b
Robot: [skip ci] Fix several clazy issues:
...
* Using copy-ctor but class KDL::Rotation has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Maybe you meant to call ViewProviderGeometryObject::attach() instead [-Wclazy-skipped-base-method]
* Missing emit keyword on signal call RobotGui::TaskTrajectory::axisChanged [-Wclazy-incorrect-emit]
2022-07-25 11:02:30 +02:00
Uwe
88a06f8f10
Mod: remove some unnecessary nullptr checks
2022-07-18 12:58:12 +02:00
Uwe
1823439195
[Robot etc.] remove superfluous nullptr checks
2022-07-18 02:54:09 +02:00
Uwe
75165e9594
[Robot] fix typo in function name
...
- just to please the spellchecker CI
2022-07-02 18:00:03 +02:00
wmayer
e9890c0798
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
wmayer
c955372ecf
cppcoreguidelines-pro-type-union-access
...
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
Uwe
967c7fff65
[Robot] remove unnecessary Boolean comparisons
2022-06-19 18:24:36 +02:00
Chris Hennes
ec74d351f0
Robot: PR6497 move return statement to new line
2022-03-29 13:24:17 -05:00
wmayer
97330443a2
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
f265c15ac0
Robot: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
bad4809a1c
[Robot] remove Python.h and Xerces
2022-03-20 22:37:38 +01:00
wmayer
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
wmayer
0054cbddaa
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00