cppcheck/CommonCheck.h

38 lines
1.1 KiB
C
Raw Normal View History

//---------------------------------------------------------------------------
#ifndef CommonCheckH
#define CommonCheckH
//---------------------------------------------------------------------------
#include <list>
#include <string>
2008-02-16 16:46:32 +01:00
#include <sstream>
#include <vector>
struct TOKEN;
std::string FileLine(const TOKEN *tok);
// Are two filenames the same? Case insensitive on windows
bool SameFileName( const char fname1[], const char fname2[] );
extern bool OnlyReportUniqueErrors;
2008-03-22 18:09:08 +01:00
void ReportErr(const std::string &errmsg);
2008-02-16 16:46:32 +01:00
extern std::ostringstream errout;
bool IsName(const char str[]);
bool IsNumber(const char str[]);
bool IsStandardType(const char str[]);
void FillFunctionList(const unsigned int file_id);
const TOKEN *GetFunctionTokenByName( const char funcname[] );
void CheckGlobalFunctionUsage(const std::vector<std::string> &filenames);
bool Match(const TOKEN *tok, const char pattern[], const char *varname1[]=0, const char *varname2[]=0);
2008-03-23 17:18:31 +01:00
//---------------------------------------------------------------------------
#endif