mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
commit
8805ca4f9d
3 changed files with 28 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
Checks: '-*,modernize-use-override'
|
|
||||||
WarningsAsErrors: ''
|
|
||||||
HeaderFilterRegex: '(source/).*'
|
|
||||||
CheckOptions:
|
|
||||||
- { key: modernize-use-override.IgnoreDestructors, value: true }
|
|
||||||
5
Engine/lib/.clang-tidy
Normal file
5
Engine/lib/.clang-tidy
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
Checks: '-*'
|
||||||
|
WarningsAsErrors: ''
|
||||||
|
HeaderFilterRegex: '.*'
|
||||||
|
FormatStyle: 'file'
|
||||||
|
|
@ -282,6 +282,28 @@ class EngineObject;
|
||||||
template< typename T > friend struct ::_SCOPE; \
|
template< typename T > friend struct ::_SCOPE; \
|
||||||
template< typename T > friend T* _CREATE(); \
|
template< typename T > friend T* _CREATE(); \
|
||||||
template< typename T, typename Base > friend class ::EngineClassTypeInfo; \
|
template< typename T, typename Base > friend class ::EngineClassTypeInfo; \
|
||||||
|
private: \
|
||||||
|
typedef ::_Private::_AbstractClassBase< ThisType > _ClassBase; \
|
||||||
|
static EngineClassTypeInfo< ThisType, _ClassBase > _smTypeInfo; \
|
||||||
|
static EngineExportScope& __engineExportScope(); \
|
||||||
|
static EnginePropertyTable& _smPropertyTable; \
|
||||||
|
const EngineTypeInfo* __typeinfo() const override; \
|
||||||
|
public:
|
||||||
|
|
||||||
|
/// Declare an abstract base class @a type derived from the class @a super.
|
||||||
|
///
|
||||||
|
/// Nearly identical to DECLARE_ABSTRACT_CLASS macro, but with virtual methods
|
||||||
|
/// that are suppose to be override'd in child classes.
|
||||||
|
///
|
||||||
|
/// @see DECLARE_ABSTRACT_CLASS
|
||||||
|
#define DECLARE_ABSTRACT_BASE_CLASS(type) \
|
||||||
|
public: \
|
||||||
|
typedef type ThisType; \
|
||||||
|
typedef void SuperType; \
|
||||||
|
template< typename T > friend struct ::_EngineTypeTraits; \
|
||||||
|
template< typename T > friend struct ::_SCOPE; \
|
||||||
|
template< typename T > friend T* _CREATE(); \
|
||||||
|
template< typename T, typename Base > friend class ::EngineClassTypeInfo; \
|
||||||
private: \
|
private: \
|
||||||
typedef ::_Private::_AbstractClassBase< ThisType > _ClassBase; \
|
typedef ::_Private::_AbstractClassBase< ThisType > _ClassBase; \
|
||||||
static EngineClassTypeInfo< ThisType, _ClassBase > _smTypeInfo; \
|
static EngineClassTypeInfo< ThisType, _ClassBase > _smTypeInfo; \
|
||||||
|
|
@ -504,7 +526,7 @@ class EngineObject : public StrongRefBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DECLARE_ABSTRACT_CLASS( EngineObject, void );
|
DECLARE_ABSTRACT_BASE_CLASS( EngineObject );
|
||||||
DECLARE_INSCOPE( _GLOBALSCOPE );
|
DECLARE_INSCOPE( _GLOBALSCOPE );
|
||||||
DECLARE_INSTANTIABLE;
|
DECLARE_INSTANTIABLE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue