Cppcheck
|
#include "checkio.h"
#include "astutils.h"
#include "errortypes.h"
#include "library.h"
#include "mathlib.h"
#include "platform.h"
#include "settings.h"
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include "utils.h"
#include "vfvalue.h"
#include <algorithm>
#include <cctype>
#include <cstdlib>
#include <functional>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <unordered_set>
#include <utility>
#include <vector>
Go to the source code of this file.
Enumerations | |
enum class | OpenMode { CLOSED , READ_MODE , WRITE_MODE , RW_MODE , UNKNOWN_OM } |
Functions | |
static OpenMode | getMode (const std::string &str) |
static bool | findFormat (nonneg int arg, const Token *firstArg, const Token *&formatStringTok, const Token *&formatArgTok) |
static bool | typesMatch (const std::string &iToTest, const std::string &iTypename, const std::string &iOptionalPrefix="std::") |
static void | printfFormatType (std::ostream &os, const std::string &specifier, bool isUnsigned) |
Variables | |
static const CWE | CWE119 (119U) |
static const CWE | CWE398 (398U) |
static const CWE | CWE664 (664U) |
static const CWE | CWE685 (685U) |
static const CWE | CWE686 (686U) |
static const CWE | CWE687 (687U) |
static const CWE | CWE704 (704U) |
static const CWE | CWE910 (910U) |
static const std::set< std::string > | stl_container |
|
strong |
Enumerator | |
---|---|
CLOSED | |
READ_MODE | |
WRITE_MODE | |
RW_MODE | |
UNKNOWN_OM |
Definition at line 99 of file checkio.cpp.
|
static |
Definition at line 491 of file checkio.cpp.
References Token::eString, ValueFlow::Value::isTokValue(), Token::Match(), Token::nextArgument(), Token::values(), and Token::variable().
Referenced by CheckIO::checkWrongPrintfScanfArguments().
|
static |
Definition at line 100 of file checkio.cpp.
References READ_MODE, RW_MODE, UNKNOWN_OM, and WRITE_MODE.
Referenced by CheckIO::checkFileUsage().
|
static |
Definition at line 1859 of file checkio.cpp.
Referenced by CheckIO::invalidPrintfArgTypeError_sint(), and CheckIO::invalidPrintfArgTypeError_uint().
|
inlinestatic |
Definition at line 526 of file checkio.cpp.
Referenced by CheckIO::checkFormatString().
|
static |
Referenced by CheckIO::invalidScanfError().
|
static |
|
static |
|
static |
|
static |
Referenced by CheckIO::invalidPrintfArgTypeError_float(), CheckIO::invalidPrintfArgTypeError_n(), CheckIO::invalidPrintfArgTypeError_p(), CheckIO::invalidPrintfArgTypeError_s(), CheckIO::invalidPrintfArgTypeError_sint(), CheckIO::invalidPrintfArgTypeError_uint(), CheckIO::invalidScanfArgTypeError_float(), CheckIO::invalidScanfArgTypeError_int(), and CheckIO::invalidScanfArgTypeError_s().
|
static |
Referenced by CheckIO::invalidScanfFormatWidthError().
|
static |
Referenced by CheckIO::invalidLengthModifierError().
|
static |
Referenced by CheckIO::useClosedFileError().
|
static |
Definition at line 1629 of file checkio.cpp.
Referenced by CheckIO::ArgumentInfo::isStdContainer().