clang API Documentation

Public Member Functions
clang::ento::StackHintGeneratorForSymbol Class Reference

Constructs a Stack hint for the given symbol. More...

#include <PathDiagnostic.h>

Inheritance diagram for clang::ento::StackHintGeneratorForSymbol:
Inheritance graph
[legend]
Collaboration diagram for clang::ento::StackHintGeneratorForSymbol:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StackHintGeneratorForSymbol (SymbolRef S, StringRef M)
virtual ~StackHintGeneratorForSymbol ()
std::string getMessage (const ExplodedNode *N) override
 Search the call expression for the symbol Sym and dispatch the 'getMessageForX()' methods to construct a specific message.
virtual std::string getMessageForArg (const Expr *ArgE, unsigned ArgIndex)
virtual std::string getMessageForReturn (const CallExpr *CallExpr)
virtual std::string getMessageForSymbolNotFound ()

Detailed Description

Constructs a Stack hint for the given symbol.

The class knows how to construct the stack hint message based on traversing the CallExpr associated with the call and checking if the given symbol is returned or is one of the arguments. The hint can be customized by redefining 'getMessageForX()' methods.

Definition at line 474 of file PathDiagnostic.h.


Constructor & Destructor Documentation

Definition at line 480 of file PathDiagnostic.h.

Definition at line 481 of file PathDiagnostic.h.


Member Function Documentation

std::string StackHintGeneratorForSymbol::getMessage ( const ExplodedNode N) [override, virtual]
std::string StackHintGeneratorForSymbol::getMessageForArg ( const Expr ArgE,
unsigned  ArgIndex 
) [virtual]

Produces the message of the following form: 'Msg via Nth parameter'

Definition at line 1169 of file PathDiagnostic.cpp.

virtual std::string clang::ento::StackHintGeneratorForSymbol::getMessageForReturn ( const CallExpr CallExpr) [inline, virtual]

Definition at line 490 of file PathDiagnostic.h.

Definition at line 493 of file PathDiagnostic.h.


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