clang  6.0.0svn
Public Types | Public Member Functions | List of all members
clang::analyze_os_log::OSLogBufferItem Class Reference

An OSLogBufferItem represents a single item in the data written by a call to os_log() or os_trace(). More...

#include "clang/Analysis/Analyses/OSLog.h"

Public Types

enum  Kind {
  ScalarKind = 0, CountKind, StringKind, PointerKind,
  ObjCObjKind, WideStringKind, ErrnoKind
}
 
enum  { IsPrivate = 0x1, IsPublic = 0x2 }
 

Public Member Functions

 OSLogBufferItem (Kind kind, const Expr *expr, CharUnits size, unsigned flags)
 
 OSLogBufferItem (ASTContext &Ctx, CharUnits value, unsigned flags)
 
unsigned char getDescriptorByte () const
 
unsigned char getSizeByte () const
 
Kind getKind () const
 
bool getIsPrivate () const
 
bool getIsPublic () const
 
const ExprgetExpr () const
 
CharUnits getConstValue () const
 
CharUnits size () const
 

Detailed Description

An OSLogBufferItem represents a single item in the data written by a call to os_log() or os_trace().

Definition at line 26 of file OSLog.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IsPrivate 
IsPublic 

Definition at line 58 of file OSLog.h.

◆ Kind

Enumerator
ScalarKind 
CountKind 
StringKind 
PointerKind 
ObjCObjKind 
WideStringKind 
ErrnoKind 

Definition at line 28 of file OSLog.h.

Constructor & Destructor Documentation

◆ OSLogBufferItem() [1/2]

clang::analyze_os_log::OSLogBufferItem::OSLogBufferItem ( Kind  kind,
const Expr expr,
CharUnits  size,
unsigned  flags 
)
inline

Definition at line 74 of file OSLog.h.

◆ OSLogBufferItem() [2/2]

clang::analyze_os_log::OSLogBufferItem::OSLogBufferItem ( ASTContext Ctx,
CharUnits  value,
unsigned  flags 
)
inline

Definition at line 77 of file OSLog.h.

Member Function Documentation

◆ getConstValue()

CharUnits clang::analyze_os_log::OSLogBufferItem::getConstValue ( ) const
inline

Definition at line 98 of file OSLog.h.

◆ getDescriptorByte()

unsigned char clang::analyze_os_log::OSLogBufferItem::getDescriptorByte ( ) const
inline

Definition at line 81 of file OSLog.h.

References getIsPrivate(), getIsPublic(), getKind(), IsPrivate, and IsPublic.

◆ getExpr()

const Expr* clang::analyze_os_log::OSLogBufferItem::getExpr ( ) const
inline

Definition at line 97 of file OSLog.h.

◆ getIsPrivate()

bool clang::analyze_os_log::OSLogBufferItem::getIsPrivate ( ) const
inline

Definition at line 94 of file OSLog.h.

References IsPrivate.

Referenced by getDescriptorByte(), and clang::analyze_os_log::OSLogBufferLayout::hasPrivateItems().

◆ getIsPublic()

bool clang::analyze_os_log::OSLogBufferItem::getIsPublic ( ) const
inline

Definition at line 95 of file OSLog.h.

References IsPublic.

Referenced by getDescriptorByte(), and clang::analyze_os_log::OSLogBufferLayout::hasPublicItems().

◆ getKind()

Kind clang::analyze_os_log::OSLogBufferItem::getKind ( ) const
inline

◆ getSizeByte()

unsigned char clang::analyze_os_log::OSLogBufferItem::getSizeByte ( ) const
inline

Definition at line 91 of file OSLog.h.

References clang::CharUnits::getQuantity(), and size().

◆ size()

CharUnits clang::analyze_os_log::OSLogBufferItem::size ( ) const
inline

Definition at line 99 of file OSLog.h.

Referenced by getSizeByte().


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