From a2a9c901421fc187ea06b6a06ef37f7d0281a82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 26 Jan 2022 19:02:20 +0100 Subject: [PATCH] added some missing copyright headers (#3758) --- cli/cmdlineparser.h | 2 +- gui/precompiled_qmake.h | 2 +- lib/bughuntingchecks.h | 2 +- lib/clangimport.h | 2 +- lib/color.cpp | 18 ++++++++++++++++++ lib/errortypes.cpp | 2 +- lib/forwardanalyzer.cpp | 18 ++++++++++++++++++ lib/infer.cpp | 18 ++++++++++++++++++ lib/pathanalysis.cpp | 18 ++++++++++++++++++ lib/pathanalysis.h | 18 ++++++++++++++++++ lib/pathmatch.cpp | 2 +- lib/precompiled.h | 2 +- lib/programmemory.cpp | 17 +++++++++++++++++ lib/programmemory.h | 18 ++++++++++++++++++ lib/reverseanalyzer.cpp | 18 ++++++++++++++++++ lib/standards.h | 2 +- lib/summaries.cpp | 17 +++++++++++++++++ 17 files changed, 168 insertions(+), 8 deletions(-) diff --git a/cli/cmdlineparser.h b/cli/cmdlineparser.h index ef36c4447..b5c8c89f3 100644 --- a/cli/cmdlineparser.h +++ b/cli/cmdlineparser.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/gui/precompiled_qmake.h b/gui/precompiled_qmake.h index 1042ca82d..09c404a98 100644 --- a/gui/precompiled_qmake.h +++ b/gui/precompiled_qmake.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/bughuntingchecks.h b/lib/bughuntingchecks.h index dcd7c0902..62d653f0d 100644 --- a/lib/bughuntingchecks.h +++ b/lib/bughuntingchecks.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/clangimport.h b/lib/clangimport.h index b6e0e3cb0..278069dec 100644 --- a/lib/clangimport.h +++ b/lib/clangimport.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/color.cpp b/lib/color.cpp index c74127d5d..d068ebefa 100644 --- a/lib/color.cpp +++ b/lib/color.cpp @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "color.h" #ifndef _WIN32 #include diff --git a/lib/errortypes.cpp b/lib/errortypes.cpp index 237ebbfac..094a286e5 100644 --- a/lib/errortypes.cpp +++ b/lib/errortypes.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/forwardanalyzer.cpp b/lib/forwardanalyzer.cpp index bf94b39fd..92d3b19fe 100644 --- a/lib/forwardanalyzer.cpp +++ b/lib/forwardanalyzer.cpp @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "forwardanalyzer.h" #include "analyzer.h" #include "astutils.h" diff --git a/lib/infer.cpp b/lib/infer.cpp index cc0447741..d1f795287 100644 --- a/lib/infer.cpp +++ b/lib/infer.cpp @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "infer.h" #include "calculate.h" #include "valueptr.h" diff --git a/lib/pathanalysis.cpp b/lib/pathanalysis.cpp index 04b8bface..4381e8e78 100644 --- a/lib/pathanalysis.cpp +++ b/lib/pathanalysis.cpp @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "pathanalysis.h" #include "astutils.h" #include "symboldatabase.h" diff --git a/lib/pathanalysis.h b/lib/pathanalysis.h index af7b8834c..b8b01801a 100644 --- a/lib/pathanalysis.h +++ b/lib/pathanalysis.h @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 . + */ + #ifndef GUARD_PATHANALYSIS_H #define GUARD_PATHANALYSIS_H diff --git a/lib/pathmatch.cpp b/lib/pathmatch.cpp index 583ba4178..042862748 100644 --- a/lib/pathmatch.cpp +++ b/lib/pathmatch.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/precompiled.h b/lib/precompiled.h index 4340c4d49..f4cceae31 100644 --- a/lib/precompiled.h +++ b/lib/precompiled.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/programmemory.cpp b/lib/programmemory.cpp index cee110dc5..8821fbc8e 100644 --- a/lib/programmemory.cpp +++ b/lib/programmemory.cpp @@ -1,3 +1,20 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "programmemory.h" #include "astutils.h" diff --git a/lib/programmemory.h b/lib/programmemory.h index 5dfe5b156..74d598285 100644 --- a/lib/programmemory.h +++ b/lib/programmemory.h @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 . + */ + #ifndef GUARD_PROGRAMMEMORY_H #define GUARD_PROGRAMMEMORY_H diff --git a/lib/reverseanalyzer.cpp b/lib/reverseanalyzer.cpp index 7adfc7712..90db4e69d 100644 --- a/lib/reverseanalyzer.cpp +++ b/lib/reverseanalyzer.cpp @@ -1,3 +1,21 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "reverseanalyzer.h" #include "analyzer.h" #include "astutils.h" diff --git a/lib/standards.h b/lib/standards.h index 8dd28847c..b7873d7c1 100644 --- a/lib/standards.h +++ b/lib/standards.h @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * 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 diff --git a/lib/summaries.cpp b/lib/summaries.cpp index 39497ed15..98e5de43c 100644 --- a/lib/summaries.cpp +++ b/lib/summaries.cpp @@ -1,3 +1,20 @@ +/* + * Cppcheck - A tool for static C/C++ code analysis + * Copyright (C) 2007-2021 Cppcheck team. + * + * 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 3 of the License, or + * (at your option) 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 "summaries.h"