clang 20.0.0git
Public Member Functions | List of all members
clang::analyze_format_string::FormatStringHandler Class Reference

#include "clang/AST/FormatString.h"

Public Member Functions

 FormatStringHandler ()
 
virtual ~FormatStringHandler ()
 
virtual void HandleNullChar (const char *nullCharacter)
 
virtual void HandlePosition (const char *startPos, unsigned posLen)
 
virtual void HandleInvalidPosition (const char *startPos, unsigned posLen, PositionContext p)
 
virtual void HandleZeroPosition (const char *startPos, unsigned posLen)
 
virtual void HandleIncompleteSpecifier (const char *startSpecifier, unsigned specifierLen)
 
virtual void HandleEmptyObjCModifierFlag (const char *startFlags, unsigned flagsLen)
 
virtual void HandleInvalidObjCModifierFlag (const char *startFlag, unsigned flagLen)
 
virtual void HandleObjCFlagsWithNonObjCConversion (const char *flagsStart, const char *flagsEnd, const char *conversionPosition)
 
virtual bool HandleInvalidPrintfConversionSpecifier (const analyze_printf::PrintfSpecifier &FS, const char *startSpecifier, unsigned specifierLen)
 
virtual bool HandlePrintfSpecifier (const analyze_printf::PrintfSpecifier &FS, const char *startSpecifier, unsigned specifierLen, const TargetInfo &Target)
 
virtual void handleInvalidMaskType (StringRef MaskType)
 Handle mask types whose sizes are not between one and eight bytes.
 
virtual bool HandleInvalidScanfConversionSpecifier (const analyze_scanf::ScanfSpecifier &FS, const char *startSpecifier, unsigned specifierLen)
 
virtual bool HandleScanfSpecifier (const analyze_scanf::ScanfSpecifier &FS, const char *startSpecifier, unsigned specifierLen)
 
virtual void HandleIncompleteScanList (const char *start, const char *end)
 

Detailed Description

Definition at line 716 of file FormatString.h.

Constructor & Destructor Documentation

◆ FormatStringHandler()

clang::analyze_format_string::FormatStringHandler::FormatStringHandler ( )
inline

Definition at line 718 of file FormatString.h.

◆ ~FormatStringHandler()

FormatStringHandler::~FormatStringHandler ( )
virtual

Definition at line 29 of file FormatString.cpp.

Member Function Documentation

◆ HandleEmptyObjCModifierFlag()

virtual void clang::analyze_format_string::FormatStringHandler::HandleEmptyObjCModifierFlag ( const char *  startFlags,
unsigned  flagsLen 
)
inlinevirtual

Definition at line 733 of file FormatString.h.

Referenced by ParseObjCFlags().

◆ HandleIncompleteScanList()

virtual void clang::analyze_format_string::FormatStringHandler::HandleIncompleteScanList ( const char *  start,
const char *  end 
)
inlinevirtual

Definition at line 776 of file FormatString.h.

Referenced by ParseScanList().

◆ HandleIncompleteSpecifier()

virtual void clang::analyze_format_string::FormatStringHandler::HandleIncompleteSpecifier ( const char *  startSpecifier,
unsigned  specifierLen 
)
inlinevirtual

◆ handleInvalidMaskType()

virtual void clang::analyze_format_string::FormatStringHandler::handleInvalidMaskType ( StringRef  MaskType)
inlinevirtual

Handle mask types whose sizes are not between one and eight bytes.

Definition at line 759 of file FormatString.h.

Referenced by ParsePrintfSpecifier().

◆ HandleInvalidObjCModifierFlag()

virtual void clang::analyze_format_string::FormatStringHandler::HandleInvalidObjCModifierFlag ( const char *  startFlag,
unsigned  flagLen 
)
inlinevirtual

Definition at line 736 of file FormatString.h.

Referenced by ParseObjCFlags().

◆ HandleInvalidPosition()

virtual void clang::analyze_format_string::FormatStringHandler::HandleInvalidPosition ( const char *  startPos,
unsigned  posLen,
PositionContext  p 
)
inlinevirtual

Definition at line 725 of file FormatString.h.

Referenced by clang::analyze_format_string::ParsePositionAmount().

◆ HandleInvalidPrintfConversionSpecifier()

virtual bool clang::analyze_format_string::FormatStringHandler::HandleInvalidPrintfConversionSpecifier ( const analyze_printf::PrintfSpecifier FS,
const char *  startSpecifier,
unsigned  specifierLen 
)
inlinevirtual

Definition at line 744 of file FormatString.h.

Referenced by ParsePrintfSpecifier().

◆ HandleInvalidScanfConversionSpecifier()

virtual bool clang::analyze_format_string::FormatStringHandler::HandleInvalidScanfConversionSpecifier ( const analyze_scanf::ScanfSpecifier FS,
const char *  startSpecifier,
unsigned  specifierLen 
)
inlinevirtual

Definition at line 763 of file FormatString.h.

Referenced by ParseScanfSpecifier().

◆ HandleNullChar()

virtual void clang::analyze_format_string::FormatStringHandler::HandleNullChar ( const char *  nullCharacter)
inlinevirtual

Definition at line 721 of file FormatString.h.

Referenced by ParsePrintfSpecifier(), and ParseScanfSpecifier().

◆ HandleObjCFlagsWithNonObjCConversion()

virtual void clang::analyze_format_string::FormatStringHandler::HandleObjCFlagsWithNonObjCConversion ( const char *  flagsStart,
const char *  flagsEnd,
const char *  conversionPosition 
)
inlinevirtual

Definition at line 739 of file FormatString.h.

Referenced by ParsePrintfSpecifier().

◆ HandlePosition()

virtual void clang::analyze_format_string::FormatStringHandler::HandlePosition ( const char *  startPos,
unsigned  posLen 
)
inlinevirtual

Definition at line 723 of file FormatString.h.

Referenced by clang::analyze_format_string::ParseArgPosition().

◆ HandlePrintfSpecifier()

virtual bool clang::analyze_format_string::FormatStringHandler::HandlePrintfSpecifier ( const analyze_printf::PrintfSpecifier FS,
const char *  startSpecifier,
unsigned  specifierLen,
const TargetInfo Target 
)
inlinevirtual

Definition at line 751 of file FormatString.h.

Referenced by clang::analyze_format_string::ParsePrintfString().

◆ HandleScanfSpecifier()

virtual bool clang::analyze_format_string::FormatStringHandler::HandleScanfSpecifier ( const analyze_scanf::ScanfSpecifier FS,
const char *  startSpecifier,
unsigned  specifierLen 
)
inlinevirtual

Definition at line 770 of file FormatString.h.

Referenced by clang::analyze_format_string::ParseScanfString().

◆ HandleZeroPosition()

virtual void clang::analyze_format_string::FormatStringHandler::HandleZeroPosition ( const char *  startPos,
unsigned  posLen 
)
inlinevirtual

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