Новая структура проекта

This commit is contained in:
2021-11-27 14:46:53 +03:00
parent e71c75a0e4
commit e5d0988040
106 changed files with 317 additions and 47 deletions

View File

@@ -0,0 +1,6 @@
class ABSTRACT_CLASS {
public:
ABSTRACT_CLASS();
virtual int function();
};

6
sources/Class.cpp Normal file
View File

@@ -0,0 +1,6 @@
class TEST_CLASS {
public:
TEST_CLASS();
~TEST_CLASS();
};

View File

@@ -0,0 +1,5 @@
class ClassWithClassConstant {
public:
static int const Class_Constant = 0;
};

5
sources/ClassMember.cpp Normal file
View File

@@ -0,0 +1,5 @@
class ClassWithClassMember {
public:
static int CLASS_MEMBER;
};

5
sources/ClassMethod.cpp Normal file
View File

@@ -0,0 +1,5 @@
class ClassWithMethod {
public:
static int get_int() { return 0; };
};

1
sources/Constant.cpp Normal file
View File

@@ -0,0 +1 @@
// FIXME

View File

@@ -0,0 +1,5 @@
class ClassWithConstantMember {
public:
char const ConstMember[4] = "123";
};

View File

@@ -0,0 +1,4 @@
char returnChar(const char return_Value) {
return return_Value;
};

View File

@@ -0,0 +1,4 @@
void* returnVoid(void* const return_Value) {
return return_Value;
};

View File

@@ -0,0 +1,3 @@
constexpr int get_five() {
return ( 5 );
}

View File

@@ -0,0 +1,5 @@
class ClassWithConstexprMethod {
private:
constexpr int get_int() { return 0; };
};

View File

@@ -0,0 +1,2 @@
constexpr int CONST_FIVE = 5;

2
sources/Enum.cpp Normal file
View File

@@ -0,0 +1,2 @@
enum TEST_enum { ONE, TWO };

2
sources/EnumConstant.cpp Normal file
View File

@@ -0,0 +1,2 @@
enum TestEnum { one, TWO };

4
sources/Function.cpp Normal file
View File

@@ -0,0 +1,4 @@
static int static_function() {
return 0;
}

View File

@@ -0,0 +1,2 @@
const int theOne = 1;

View File

@@ -0,0 +1,3 @@
void* global_pointer;
void* const GlobalConstPointer = global_pointer;

View File

@@ -0,0 +1,4 @@
int global_function() {
return 0;
}

View File

@@ -0,0 +1,2 @@
void* globalPointer;

View File

@@ -0,0 +1 @@
unsigned GlobalVariable;

View File

@@ -0,0 +1,2 @@
int main() {
}

View File

@@ -0,0 +1,6 @@
namespace test_ns {
inline namespace InlineNamespace {
}
} // namespace test_ns

View File

@@ -0,0 +1,5 @@
int functionWithLocalConstant() {
const int LocalConstant = 0;
return LocalConstant;
}

View File

@@ -0,0 +1,6 @@
void* functionWithLocalConstPointer() {
void* pointer = nullptr;
void* const LocalConstPointer = pointer;
return LocalConstPointer;
}

5
sources/LocalPointer.cpp Normal file
View File

@@ -0,0 +1,5 @@
void* function() {
void* LocalPointer = nullptr;
return LocalPointer;
}

View File

@@ -0,0 +1,5 @@
int function() {
int LocalVariable = 0;
return LocalVariable;
}

View File

@@ -0,0 +1 @@
#define MacroDefinition 0

1
sources/Member.cpp Normal file
View File

@@ -0,0 +1 @@
/// FIXME

1
sources/Method.cpp Normal file
View File

@@ -0,0 +1 @@
// FIXME

4
sources/Namespace.cpp Normal file
View File

@@ -0,0 +1,4 @@
namespace TEST_ns {
}

4
sources/Parameter.cpp Normal file
View File

@@ -0,0 +1,4 @@
int returnInt(int return_Value) {
return return_Value;
};

View File

@@ -0,0 +1,2 @@
template<class ... Types> void f(Types ... Parameters_Pack);

View File

@@ -0,0 +1,4 @@
void* returnPtr(void* return_Value) {
return return_Value;
};

View File

@@ -0,0 +1,5 @@
class ClassWithPrivateMember {
private:
int PrivateMember;
};

View File

@@ -0,0 +1,4 @@
class ClassWithPrivateMethod {
private:
int get_int() { return 0; };
};

View File

@@ -0,0 +1,5 @@
class ClassWithProtectedMember {
protected:
int ProtectedMember;
};

View File

@@ -0,0 +1,5 @@
class ClassWithProtectedMethod {
protected:
int get_int() { return 0; };
};

5
sources/PublicMember.cpp Normal file
View File

@@ -0,0 +1,5 @@
class ClassWithPublicMember {
public:
int PublicMember;
};

5
sources/PublicMethod.cpp Normal file
View File

@@ -0,0 +1,5 @@
class ClassWithPublicMethod {
public:
int get_int() { return 0; };
};

View File

@@ -0,0 +1 @@
enum class TestEnum { big, SMALL_ };

View File

@@ -0,0 +1,5 @@
int functionWithStaticConstant() {
static const int StaticConstant = 0;
return StaticConstant;
}

View File

@@ -0,0 +1,5 @@
int functionWithStaticVariable() {
static int StaticVariable = 0;
return StaticVariable;
}

3
sources/Struct.cpp Normal file
View File

@@ -0,0 +1,3 @@
struct TEST_struct {
int a;
};

View File

@@ -0,0 +1,4 @@
template<typename TType>int tFunction(TType t_value) {
return 0;
}

View File

@@ -0,0 +1 @@
template<template<class T> class TPL_TPL_Parameter> class AllmightyClass { };

5
sources/TypeAlias.cpp Normal file
View File

@@ -0,0 +1,5 @@
struct MyStructure {
int a;
};
using MY_STRUCT_TYPE = MyStructure;

View File

@@ -0,0 +1,4 @@
template<typename t_type>int tFunction(t_type value) {
return 0;
};

2
sources/Typedef.cpp Normal file
View File

@@ -0,0 +1,2 @@
typedef int MY_INT;

5
sources/Union.cpp Normal file
View File

@@ -0,0 +1,5 @@
union TEST_union {
int a;
char b;
};

View File

@@ -0,0 +1,4 @@
template<typename TType, int arg_COUNT> int tFunction(TType tValue) {
return 0;
}

0
sources/Variable.cpp Normal file
View File

View File

@@ -0,0 +1,4 @@
class ClassWithVirtualMethod {
private:
virtual int get_int() { return 0; };
};