diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-02 13:06:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-02 13:06:43 +0300 |
commit | 6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125 (patch) | |
tree | be30d4075f037db68f3902f9285e4248e56c5e14 /tests | |
parent | ac179932fea5244a18547fffa5eb7f086afd3c08 (diff) | |
download | mplint-6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125.tar.gz mplint-6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125.tar.bz2 mplint-6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125.tar.xz mplint-6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125.zip |
add good test files. must not report any errors.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsrc/good/constructor1.cpp | 39 | ||||
-rw-r--r-- | tests/testsrc/good/constructor1.h | 37 | ||||
-rw-r--r-- | tests/testsrc/good/debug1.cpp | 27 | ||||
-rw-r--r-- | tests/testsrc/good/final1.cpp | 33 | ||||
-rw-r--r-- | tests/testsrc/good/final1.h | 29 | ||||
-rw-r--r-- | tests/testsrc/good/license1.cpp | 29 | ||||
-rw-r--r-- | tests/testsrc/good/license1.h | 27 |
7 files changed, 221 insertions, 0 deletions
diff --git a/tests/testsrc/good/constructor1.cpp b/tests/testsrc/good/constructor1.cpp new file mode 100644 index 0000000..41003b7 --- /dev/null +++ b/tests/testsrc/good/constructor1.cpp @@ -0,0 +1,39 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +#include "debug.h" + +class Test1 final +{ + Test1::Test1() + { + } +} + +struct Test2 final +{ + Test2::Test2() : + data1(), + data2() + { + } +} diff --git a/tests/testsrc/good/constructor1.h b/tests/testsrc/good/constructor1.h new file mode 100644 index 0000000..4e5a06d --- /dev/null +++ b/tests/testsrc/good/constructor1.h @@ -0,0 +1,37 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +class Test1 final +{ + Test1::Test1() + { + } +} + +struct Test2 final +{ + Test2::Test2() : + data1(), + data2() + { + } +} diff --git a/tests/testsrc/good/debug1.cpp b/tests/testsrc/good/debug1.cpp new file mode 100644 index 0000000..b6812d4 --- /dev/null +++ b/tests/testsrc/good/debug1.cpp @@ -0,0 +1,27 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +#include "debug.h" + +void func() +{ +} diff --git a/tests/testsrc/good/final1.cpp b/tests/testsrc/good/final1.cpp new file mode 100644 index 0000000..e3d0b4d --- /dev/null +++ b/tests/testsrc/good/final1.cpp @@ -0,0 +1,33 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +#include "debug.h" + +class Test1 final +{ + Test1(); +} + +class Test2 notfinal : public Test1 +{ + Test2(); +} diff --git a/tests/testsrc/good/final1.h b/tests/testsrc/good/final1.h new file mode 100644 index 0000000..1b4da20 --- /dev/null +++ b/tests/testsrc/good/final1.h @@ -0,0 +1,29 @@ +/* + * The ManaPlus Client + * Copyright (C) 2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +class Test1 notfinal +{ +} + +class Test2 final : public Test1 +{ +} diff --git a/tests/testsrc/good/license1.cpp b/tests/testsrc/good/license1.cpp new file mode 100644 index 0000000..d2e37a6 --- /dev/null +++ b/tests/testsrc/good/license1.cpp @@ -0,0 +1,29 @@ +/* + * The ManaPlus Client + * Copyright (C) zzzz + * Copyright (C) 2014 The ManaPlus Developers + * Copyright (C) aaaa + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +#include "debug.h" + +void func() +{ +} diff --git a/tests/testsrc/good/license1.h b/tests/testsrc/good/license1.h new file mode 100644 index 0000000..ff70864 --- /dev/null +++ b/tests/testsrc/good/license1.h @@ -0,0 +1,27 @@ +/* + * The ManaPlus Client + * Copyright (C) zzzzzz + * Copyright (C) 2014 The ManaPlus Developers + * Copyright (C) zzzzzz + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lintmanager.h" + +void func() +{ +} |