Cppcheck
lib
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
32
struct
CPPCHECKLIB
MisraInfo
{
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
config.h
CPPCHECKLIB
#define CPPCHECKLIB
Definition:
config.h:35
checkers
Definition:
checkers.cpp:24
checkers::Req
const char Req[]
Definition:
checkers.cpp:834
checkers::misraC2012Rules
const std::vector< MisraInfo > misraC2012Rules
Definition:
checkers.cpp:838
checkers::Adv
const char Adv[]
Definition:
checkers.cpp:835
checkers::premiumCheckers
const std::map< std::string, std::string > premiumCheckers
Definition:
checkers.cpp:210
checkers::misraRuleSeverity
const std::map< std::string, std::string > misraRuleSeverity
Definition:
checkers.cpp:1042
checkers::allCheckers
const std::map< std::string, std::string > allCheckers
Definition:
checkers.cpp:25
checkers::Man
const char Man[]
Definition:
checkers.cpp:836
checkers::MisraInfo
Definition:
checkers.h:32
checkers::MisraInfo::str
const char * str
Definition:
checkers.h:35
checkers::MisraInfo::amendment
int amendment
Definition:
checkers.h:36
checkers::MisraInfo::a
int a
Definition:
checkers.h:33
checkers::MisraInfo::b
int b
Definition:
checkers.h:34
Generated on Tue May 14 2024 11:53:13 for Cppcheck by
1.9.1