diff options
Diffstat (limited to 'dev-scripts/templates/check.h')
-rw-r--r-- | dev-scripts/templates/check.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-scripts/templates/check.h b/dev-scripts/templates/check.h new file mode 100644 index 00000000..7998cae2 --- /dev/null +++ b/dev-scripts/templates/check.h @@ -0,0 +1,40 @@ +/* + This file is part of the clazy static checker. + + %4 + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef CLAZY_%1_H +#define CLAZY_%1_H + +#include "checkbase.h" + + +/** + * See README-%3.md for more info. + */ +class %2 : public CheckBase +{ +public: + explicit %2(const std::string &name, ClazyContext *context); + void VisitDecl(clang::Decl *) override; + void VisitStmt(clang::Stmt *) override; +private: +}; + +#endif |