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

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
CMakeLists.txtMakefile
expected
sources

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

6
expected/Class.cpp Normal file

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

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

5
expected/ClassMember.cpp Normal file

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

5
expected/ClassMethod.cpp Normal file

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

1
expected/Constant.cpp Normal file

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

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

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

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

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

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

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

2
expected/Enum.cpp Normal file

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

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

4
expected/Function.cpp Normal file

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

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

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

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

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

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

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

@ -0,0 +1,6 @@

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

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

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

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

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

1
expected/Member.cpp Normal file

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

1
expected/Method.cpp Normal file

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

4
expected/Namespace.cpp Normal file

@ -0,0 +1,4 @@

4
expected/Parameter.cpp Normal file

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

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

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

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

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

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

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

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

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

@ -0,0 +1 @@
enum class TestEnum { Big, Small };

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

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

3
expected/Struct.cpp Normal file

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

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

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

5
expected/TypeAlias.cpp Normal file

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

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

2
expected/Typedef.cpp Normal file

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

5
expected/Union.cpp Normal file

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

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

0
expected/Variable.cpp Normal file

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