Cppcheck
Macros | Functions | Variables
checkunusedfunctions.cpp File Reference
#include "checkunusedfunctions.h"
#include "astutils.h"
#include "errorlogger.h"
#include "errortypes.h"
#include "library.h"
#include "settings.h"
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include "tokenlist.h"
#include "utils.h"
#include <algorithm>
#include <cctype>
#include <cstring>
#include <fstream>
#include <map>
#include <sstream>
#include <tuple>
#include <utility>
#include <vector>
#include "xml.h"

Go to the source code of this file.

Macros

#define logChecker(id)
 

Functions

static std::string stripTemplateParameters (const std::string &funcName)
 
static bool isOperatorFunction (const std::string &funcName)
 

Variables

static const CWE CWE561 (561U)
 

Macro Definition Documentation

◆ logChecker

#define logChecker (   id)
Value:
do { \
const ErrorMessage errmsg({}, nullptr, Severity::internal, "logChecker", (id), CWE(0U), Certainty::normal); \
errorLogger.reportErr(errmsg); \
} while (false)
Wrapper for error messages, provided by reportErr()
Definition: errorlogger.h:48
@ internal
Internal message.
static constexpr char CWE[]
Definition: resultstree.cpp:67

Definition at line 310 of file checkunusedfunctions.cpp.

Function Documentation

◆ isOperatorFunction()

static bool isOperatorFunction ( const std::string &  funcName)
static

◆ stripTemplateParameters()

static std::string stripTemplateParameters ( const std::string &  funcName)
static

Variable Documentation

◆ CWE561

const CWE CWE561(561U) ( 561U  )
static