QL code and tests for C#/C++/JavaScript.

This commit is contained in:
Pavel Avgustinov
2018-08-02 17:53:23 +01:00
commit b55526aa58
10684 changed files with 581163 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
// Definitions of Apple are exactly the same in b1.c and b2.c
class AppleCompatible {
int apple_x;
};
// Definitions of Banana are compatible but this copy uses a typedef
typedef int MyInt;
typedef MyInt IntType;
class BananaCompatible {
IntType banana_x;
};
// Definitions of Cherry are not compatible - the field types differ
class Cherry {
short cherry_x;
};
// This shows that we currently only consider member variables, and ignore
// functions when deciding on class compatibility. In this file there is a
// member function called `bar`, in b1.cpp there is one called `foo`.
class Damson {
int damson_x;
void bar();
};