From 6eabcb8e4d0ab1521d4f1149b59eee82a6f4d125 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Jun 2014 13:06:43 +0300 Subject: add good test files. must not report any errors. --- tests/testsrc/good/constructor1.cpp | 39 +++++++++++++++++++++++++++++++++++++ tests/testsrc/good/constructor1.h | 37 +++++++++++++++++++++++++++++++++++ tests/testsrc/good/debug1.cpp | 27 +++++++++++++++++++++++++ tests/testsrc/good/final1.cpp | 33 +++++++++++++++++++++++++++++++ tests/testsrc/good/final1.h | 29 +++++++++++++++++++++++++++ tests/testsrc/good/license1.cpp | 29 +++++++++++++++++++++++++++ tests/testsrc/good/license1.h | 27 +++++++++++++++++++++++++ 7 files changed, 221 insertions(+) create mode 100644 tests/testsrc/good/constructor1.cpp create mode 100644 tests/testsrc/good/constructor1.h create mode 100644 tests/testsrc/good/debug1.cpp create mode 100644 tests/testsrc/good/final1.cpp create mode 100644 tests/testsrc/good/final1.h create mode 100644 tests/testsrc/good/license1.cpp create mode 100644 tests/testsrc/good/license1.h 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 . + */ + +#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 . + */ + +#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 . + */ + +#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 . + */ + +#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 . + */ + +#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 . + */ + +#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 . + */ + +#include "lintmanager.h" + +void func() +{ +} -- cgit v1.2.3-60-g2f50