summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 13:06:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 13:06:43 +0300
commit6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125 (patch)
treebe30d4075f037db68f3902f9285e4248e56c5e14 /tests
parentac179932fea5244a18547fffa5eb7f086afd3c08 (diff)
downloadmplint-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.cpp39
-rw-r--r--tests/testsrc/good/constructor1.h37
-rw-r--r--tests/testsrc/good/debug1.cpp27
-rw-r--r--tests/testsrc/good/final1.cpp33
-rw-r--r--tests/testsrc/good/final1.h29
-rw-r--r--tests/testsrc/good/license1.cpp29
-rw-r--r--tests/testsrc/good/license1.h27
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()
+{
+}