Cppcheck
Public Member Functions | Private Member Functions | Static Private Member Functions
Check64BitPortability Class Reference

Check for 64-bit portability issues. More...

#include <check64bit.h>

Inheritance diagram for Check64BitPortability:
Check

List of all members.

Public Member Functions

 Check64BitPortability ()
 This constructor is used when registering the Check64BitPortability.
 Check64BitPortability (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
 This constructor is used when running checks.
void runChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
 Run checks against the normal token list.
void runSimplifiedChecks (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
 Run checks against the simplified token list.
void pointerassignment ()
 Check for pointer assignment.

Private Member Functions

void assignmentAddressToIntegerError (const Token *tok)
void assignmentIntegerToAddressError (const Token *tok)
void returnIntegerError (const Token *tok)
void returnPointerError (const Token *tok)
void getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const
 get error messages
std::string classInfo () const
 get information about this class, used to generate documentation

Static Private Member Functions

static std::string myName ()

Detailed Description

Check for 64-bit portability issues.

Definition at line 36 of file check64bit.h.


Constructor & Destructor Documentation

This constructor is used when registering the Check64BitPortability.

Definition at line 39 of file check64bit.h.

Check64BitPortability::Check64BitPortability ( const Tokenizer tokenizer,
const Settings settings,
ErrorLogger errorLogger 
) [inline]

This constructor is used when running checks.

Definition at line 43 of file check64bit.h.


Member Function Documentation

Definition at line 119 of file check64bit.cpp.

References Severity::portability, and Check::reportError().

Referenced by getErrorMessages(), and pointerassignment().

Definition at line 130 of file check64bit.cpp.

References Severity::portability, and Check::reportError().

Referenced by getErrorMessages(), and pointerassignment().

std::string Check64BitPortability::classInfo ( ) const [inline, private, virtual]

get information about this class, used to generate documentation

Implements Check.

Definition at line 82 of file check64bit.h.

void Check64BitPortability::getErrorMessages ( ErrorLogger errorLogger,
const Settings settings 
) const [inline, private, virtual]

get error messages

Implements Check.

Definition at line 70 of file check64bit.h.

References assignmentAddressToIntegerError(), assignmentIntegerToAddressError(), returnIntegerError(), and returnPointerError().

static std::string Check64BitPortability::myName ( ) [inline, static, private]

Definition at line 78 of file check64bit.h.

void Check64BitPortability::returnIntegerError ( const Token tok) [private]

Definition at line 152 of file check64bit.cpp.

References Severity::portability, and Check::reportError().

Referenced by getErrorMessages(), and pointerassignment().

void Check64BitPortability::returnPointerError ( const Token tok) [private]

Definition at line 141 of file check64bit.cpp.

References Severity::portability, and Check::reportError().

Referenced by getErrorMessages(), and pointerassignment().

void Check64BitPortability::runChecks ( const Tokenizer tokenizer,
const Settings settings,
ErrorLogger errorLogger 
) [inline, virtual]

Run checks against the normal token list.

Reimplemented from Check.

Definition at line 48 of file check64bit.h.

References pointerassignment().

void Check64BitPortability::runSimplifiedChecks ( const Tokenizer tokenizer,
const Settings settings,
ErrorLogger errorLogger 
) [inline, virtual]

Run checks against the simplified token list.

Implements Check.

Definition at line 54 of file check64bit.h.


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