Cppcheck
|
This is just a container for standards settings. More...
#include <standards.h>
Public Types | |
enum | Language { None , C , CPP } |
enum | cstd_t { C89 , C99 , C11 , C17 , C23 , CLatest = C23 } |
C code standard. More... | |
enum | cppstd_t { CPP03 , CPP11 , CPP14 , CPP17 , CPP20 , CPP23 , CPPLatest = CPP23 } |
C++ code standard. More... | |
Public Member Functions | |
bool | setC (const std::string &str) |
std::string | getC () const |
bool | setCPP (std::string str) |
std::string | getCPP () const |
Static Public Member Functions | |
static cstd_t | getC (const std::string &std) |
static std::string | getCPP (cppstd_t std) |
static cppstd_t | getCPP (const std::string &std) |
Public Attributes | |
enum Standards::cstd_t | c = CLatest |
enum Standards::cppstd_t | cpp = CPPLatest |
std::string | stdValue |
–std value given on command line More... | |
This is just a container for standards settings.
This struct contains all possible standards that cppcheck recognize.
Definition at line 36 of file standards.h.
enum Standards::cppstd_t |
C++ code standard.
Enumerator | |
---|---|
CPP03 | |
CPP11 | |
CPP14 | |
CPP17 | |
CPP20 | |
CPP23 | |
CPPLatest |
Definition at line 43 of file standards.h.
enum Standards::cstd_t |
enum Standards::Language |
Enumerator | |
---|---|
None | |
C | |
CPP |
Definition at line 37 of file standards.h.
|
inline |
Definition at line 64 of file standards.h.
References c, C11, C17, C23, C89, and C99.
Referenced by CppCheck::checkClang(), CppCheck::checkFile(), createDUI(), and CmdLineParser::parseFromArgs().
|
inlinestatic |
|
inline |
Definition at line 103 of file standards.h.
References cpp.
Referenced by CppCheck::checkClang(), CppCheck::checkFile(), createDUI(), ImportProject::importVcxproj(), CmdLineParser::parseFromArgs(), CheckThread::runAddonsAndTools(), and setCPP().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 48 of file standards.h.
References c, C11, C89, C99, and stdValue.
Referenced by CppCheck::check(), MainWindow::getCppcheckSettings(), Library::loadFunction(), and MainWindow::loadSettings().
|
inline |
Definition at line 97 of file standards.h.
References cpp, getCPP(), stdValue, and strTolower().
Referenced by CppCheck::check(), MainWindow::getCppcheckSettings(), Library::loadFunction(), and MainWindow::loadSettings().
enum Standards::cstd_t Standards::c = CLatest |
Referenced by CheckFunctions::checkMathFunctions(), CheckFunctions::checkMissingReturn(), CheckFunctions::checkProhibitedFunctions(), getC(), Library::loadFunction(), MainWindow::loadSettings(), CmdLineParser::parseFromArgs(), Tokenizer::removePragma(), SymbolDatabase::returnImplicitIntError(), and setC().
enum Standards::cppstd_t Standards::cpp = CPPLatest |
Referenced by CheckOther::checkAccessOfMovedVariable(), CheckOther::checkDuplicateExpression(), CheckOther::checkEvaluationOrder(), CheckClass::checkExplicitConstructors(), CheckStl::checkFindInsert(), CheckStl::checkFindInsertError(), CheckFunctions::checkMathFunctions(), CheckClass::checkOverride(), CheckFunctions::checkProhibitedFunctions(), Scope::checkVariable(), CheckClass::constructors(), getCPP(), CheckStl::if_findError(), Scope::isVariableDeclaration(), Library::loadFunction(), MainWindow::loadSettings(), CmdLineParser::parseFromArgs(), Tokenizer::removePragma(), CheckFunctions::returnLocalStdMove(), setCPP(), SymbolDatabase::setValueType(), SymbolDatabase::setValueTypeInTokenList(), Tokenizer::setVarIdPass1(), Tokenizer::simplifyIfSwitchForInit(), TemplateSimplifier::simplifyTemplates(), Tokenizer::simplifyUsing(), Tokenizer::simplifyUsingToTypedef(), Tokenizer::simplifyVarDecl(), CheckStl::size(), CheckType::tooBigSignedBitwiseShiftError(), valueFlowAfterMove(), valueFlowSetConstantValue(), and CheckClass::virtualDestructor().
std::string Standards::stdValue |
–std value given on command line
Definition at line 46 of file standards.h.
Referenced by CppCheck::checkClang(), setC(), and setCPP().