Commit Graph

33 Commits

Author SHA1 Message Date
pre-commit-ci[bot] 25c3ba7338 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
PhoneDroid 2a56489feb [ Base ]: Updated SPDX 2025-10-14 10:00:04 -05:00
Markus Reitböck f0eca551b3 Base: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-14 09:47:01 +02:00
wmayer 9a7646ab74 Base: Fix typo 2025-06-04 14:14:20 +02:00
bofdahof 998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Benjamin Nauck ece25df768 Base: Add asserts to check that Type has been initialized 2025-03-06 20:50:04 +01:00
Benjamin Nauck 280c1c610d Base: Minor cleanup
* Add const
* Add final
* [[nodiscard]]
* Fix parameter names
* Add TypeId instead of unsigned int
* Add "BadType" string constant

Some some other tweaks
2025-03-06 20:49:58 +01:00
Benjamin Nauck 140527d64a Base: Use pass by value instead of reference as size is small 2025-02-24 08:30:18 +01:00
Benjamin Nauck e956bc2101 Base: Constrain size of Base::Type 2025-02-24 08:30:18 +01:00
Benjamin Nauck 27222321c6 Base: Use constant for Type::BadType instead Type::badType() 2025-02-24 08:30:18 +01:00
Benjamin Bræstrup Sayoc dda05369c4 Base: remove unneeded includes 2025-02-18 11:07:57 -06:00
Benjamin Nauck ddb0113ded Base: Minor code cleanup in Type 2025-02-10 18:33:00 +01:00
Benjamin Nauck 0226ba1fc7 Base: Add missing const to Type::createInstance 2025-02-10 18:32:59 +01:00
wmayer 5b9b611f8e Core: In dialog to add property only list types that can be instantiated
Fixes #15159: Dialog for adding properties allows property types that give exceptions
2024-07-10 08:47:38 +02:00
wmayer f539138dd9 fix readability-*:
* readability-const-return-type
* readability-container-data-pointer
* readability-container-size-empty
* readability-delete-null-pointer
* readability-else-after-return
* readability-inconsistent-declaration-parameter-name
* readability-redundant-member-init
* readability-redundant-smartptr-get
* readability-redundant-string-cstr
* readability-use-anyofallof
* readability-static-definition-in-anonymous-namespace
* readability-static-accessed-through-instance
* readability-simplify-boolean-expr
2023-11-16 01:22:08 +01:00
wmayer 767647a05f fix readability-avoid-const-params-in-decls 2023-11-16 01:22:08 +01:00
wmayer 73a1e90e45 fix readability-identifier-length 2023-11-16 01:22:08 +01:00
wmayer e85c383bff Base: apply clang format 2023-11-13 12:01:26 -05:00
wmayer db0f6534c3 Base: modernize C++: use equals default 2023-08-20 18:10:17 +02:00
wmayer 2bc90e6090 Base: modernize C++: return braced init list 2023-08-18 00:36:24 +02:00
wmayer 367cdb36ed Base: modernize C++: use range-based for loop 2023-08-14 14:09:29 +02:00
berniev 8aff4a7503 Base: Modernise ctors dtors defs etc 2022-08-02 12:37:46 +02:00
marioalexis e76e4acb0f Base: Prevent crash when trying to create badType instance 2022-05-24 13:28:14 +02:00
wmayer e4435cdcba Base/App: fix warnings from code analysers:
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
wmayer 4d87039635 Base: modernize C++11
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-25 20:21:30 +01:00
marioalexis de59bce3b3 Base: Add 'getTypeIfDerivedFrom' member function to Type class 2022-01-19 08:14:41 +01:00
luz paz d5f6c096b8 Base: Fix header uniformity, whitespace, and doxygen
[skip ci]
2020-11-22 18:12:16 +01:00
luz.paz d36c3ebe57 Trivial code formatting for some {.cpp,.h} files 2020-04-06 12:55:27 +02:00
luz.paz 6f11ed298a src/Base: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
Abdullah Tahiri 91a6dd7285 Base::Type extension to get Type by key 2017-05-07 16:06:39 +02:00
wmayer 3e862bd557 Add addObjects to add multiple objects in one step 2017-05-07 16:06:39 +02:00
Kunda 19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer 120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00