Cppcheck
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Settings::SafeChecks Struct Reference

Do not only check how interface is used. More...

#include <settings.h>

Inheritance diagram for Settings::SafeChecks:
ProjectFile::SafeChecks

Public Member Functions

void clear ()
 

Public Attributes

bool classes {}
 Public interface of classes. More...
 
bool externalFunctions {}
 External functions. More...
 
bool internalFunctions {}
 Experimental: assume that internal functions can be used in any way This is only available in the GUI. More...
 
bool externalVariables {}
 Global variables that can be modified outside the TU. More...
 

Static Public Attributes

static const char XmlRootName [] = "safe-checks"
 
static const char XmlClasses [] = "class-public"
 
static const char XmlExternalFunctions [] = "external-functions"
 
static const char XmlInternalFunctions [] = "internal-functions"
 
static const char XmlExternalVariables [] = "external-variables"
 

Detailed Description

Do not only check how interface is used.

Also check that interface is safe.

Definition at line 316 of file settings.h.

Member Function Documentation

◆ clear()

void Settings::SafeChecks::clear ( )
inline

Definition at line 324 of file settings.h.

Referenced by ProjectFile::clear().

Member Data Documentation

◆ classes

bool Settings::SafeChecks::classes {}

Public interface of classes.

  • public function parameters can have any value
  • public functions can be called in any order
  • public variables can have any value

Definition at line 334 of file settings.h.

Referenced by CheckClass::checkUnsafeClassRefMember(), MainWindow::getCppcheckSettings(), ImportProject::importCppcheckGuiProject(), Function::isSafe(), ProjectFileDialog::loadFromProjectFile(), ProjectFile::SafeChecks::loadFromXml(), and ProjectFileDialog::saveToProjectFile().

◆ externalFunctions

bool Settings::SafeChecks::externalFunctions {}

External functions.

  • external functions can be called in any order
  • function parameters can have any values

Definition at line 341 of file settings.h.

Referenced by MainWindow::getCppcheckSettings(), ImportProject::importCppcheckGuiProject(), Function::isSafe(), and ProjectFile::SafeChecks::loadFromXml().

◆ externalVariables

bool Settings::SafeChecks::externalVariables {}

Global variables that can be modified outside the TU.

  • Such variable can have "any" value

Definition at line 353 of file settings.h.

Referenced by MainWindow::getCppcheckSettings(), ImportProject::importCppcheckGuiProject(), and ProjectFile::SafeChecks::loadFromXml().

◆ internalFunctions

bool Settings::SafeChecks::internalFunctions {}

Experimental: assume that internal functions can be used in any way This is only available in the GUI.

Definition at line 347 of file settings.h.

Referenced by MainWindow::getCppcheckSettings(), ImportProject::importCppcheckGuiProject(), Function::isSafe(), and ProjectFile::SafeChecks::loadFromXml().

◆ XmlClasses

const char Settings::SafeChecks::XmlClasses = "class-public"
static

◆ XmlExternalFunctions

const char Settings::SafeChecks::XmlExternalFunctions = "external-functions"
static

◆ XmlExternalVariables

const char Settings::SafeChecks::XmlExternalVariables = "external-variables"
static

◆ XmlInternalFunctions

const char Settings::SafeChecks::XmlInternalFunctions = "internal-functions"
static

◆ XmlRootName

const char Settings::SafeChecks::XmlRootName = "safe-checks"
static

The documentation for this struct was generated from the following files: