Cppcheck
checkers.h
Go to the documentation of this file.
1 /*
2  * Cppcheck - A tool for static C/C++ code analysis
3  * Copyright (C) 2007-2023 Cppcheck team.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef checkersH
20 #define checkersH
21 
22 #include <map>
23 #include <string>
24 #include <vector>
25 
26 #include "config.h"
27 
28 namespace checkers {
29  extern CPPCHECKLIB const std::map<std::string, std::string> allCheckers;
30  extern CPPCHECKLIB const std::map<std::string, std::string> premiumCheckers;
31 
33  int a;
34  int b;
35  const char* str;
36  int amendment;
37  };
38 
39  extern CPPCHECKLIB const char Req[]; // = "Required";
40  extern CPPCHECKLIB const char Adv[]; // = "Advisory";
41  extern CPPCHECKLIB const char Man[]; // = "Mandatory";
42 
43  extern CPPCHECKLIB const std::vector<MisraInfo> misraC2012Rules;
44 
45  extern CPPCHECKLIB const std::map<std::string, std::string> misraRuleSeverity;
46 }
47 
48 #endif
#define CPPCHECKLIB
Definition: config.h:35
const char Req[]
Definition: checkers.cpp:834
const std::vector< MisraInfo > misraC2012Rules
Definition: checkers.cpp:838
const char Adv[]
Definition: checkers.cpp:835
const std::map< std::string, std::string > premiumCheckers
Definition: checkers.cpp:210
const std::map< std::string, std::string > misraRuleSeverity
Definition: checkers.cpp:1042
const std::map< std::string, std::string > allCheckers
Definition: checkers.cpp:25
const char Man[]
Definition: checkers.cpp:836
const char * str
Definition: checkers.h:35