clang 20.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
clang::threadSafety::til::PrettyPrinter< Self, StreamType > Class Template Reference

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

Inheritance diagram for clang::threadSafety::til::PrettyPrinter< Self, StreamType >:
Inheritance graph
[legend]

Public Member Functions

 PrettyPrinter (bool V=false, bool C=true, bool CS=true)
 

Static Public Member Functions

static void print (const SExpr *E, StreamType &SS)
 

Protected Member Functions

Selfself ()
 
void newline (StreamType &SS)
 
unsigned precedence (const SExpr *E)
 
void printBlockLabel (StreamType &SS, const BasicBlock *BB, int index)
 
void printSExpr (const SExpr *E, StreamType &SS, unsigned P, bool Sub=true)
 
void printNull (StreamType &SS)
 
void printFuture (const Future *E, StreamType &SS)
 
void printUndefined (const Undefined *E, StreamType &SS)
 
void printWildcard (const Wildcard *E, StreamType &SS)
 
template<class T >
void printLiteralT (const LiteralT< T > *E, StreamType &SS)
 
void printLiteralT (const LiteralT< uint8_t > *E, StreamType &SS)
 
void printLiteral (const Literal *E, StreamType &SS)
 
void printLiteralPtr (const LiteralPtr *E, StreamType &SS)
 
void printVariable (const Variable *V, StreamType &SS, bool IsVarDecl=false)
 
void printFunction (const Function *E, StreamType &SS, unsigned sugared=0)
 
void printSFunction (const SFunction *E, StreamType &SS)
 
void printCode (const Code *E, StreamType &SS)
 
void printField (const Field *E, StreamType &SS)
 
void printApply (const Apply *E, StreamType &SS, bool sugared=false)
 
void printSApply (const SApply *E, StreamType &SS)
 
void printProject (const Project *E, StreamType &SS)
 
void printCall (const Call *E, StreamType &SS)
 
void printAlloc (const Alloc *E, StreamType &SS)
 
void printLoad (const Load *E, StreamType &SS)
 
void printStore (const Store *E, StreamType &SS)
 
void printArrayIndex (const ArrayIndex *E, StreamType &SS)
 
void printArrayAdd (const ArrayAdd *E, StreamType &SS)
 
void printUnaryOp (const UnaryOp *E, StreamType &SS)
 
void printBinaryOp (const BinaryOp *E, StreamType &SS)
 
void printCast (const Cast *E, StreamType &SS)
 
void printSCFG (const SCFG *E, StreamType &SS)
 
void printBBInstr (const SExpr *E, StreamType &SS)
 
void printBasicBlock (const BasicBlock *E, StreamType &SS)
 
void printPhi (const Phi *E, StreamType &SS)
 
void printGoto (const Goto *E, StreamType &SS)
 
void printBranch (const Branch *E, StreamType &SS)
 
void printReturn (const Return *E, StreamType &SS)
 
void printIdentifier (const Identifier *E, StreamType &SS)
 
void printIfThenElse (const IfThenElse *E, StreamType &SS)
 
void printLet (const Let *E, StreamType &SS)
 

Static Protected Attributes

static const unsigned Prec_Atom = 0
 
static const unsigned Prec_Postfix = 1
 
static const unsigned Prec_Unary = 2
 
static const unsigned Prec_Binary = 3
 
static const unsigned Prec_Other = 4
 
static const unsigned Prec_Decl = 5
 
static const unsigned Prec_MAX = 6
 

Detailed Description

template<typename Self, typename StreamType>
class clang::threadSafety::til::PrettyPrinter< Self, StreamType >

Definition at line 405 of file ThreadSafetyTraverse.h.

Constructor & Destructor Documentation

◆ PrettyPrinter()

template<typename Self , typename StreamType >
clang::threadSafety::til::PrettyPrinter< Self, StreamType >::PrettyPrinter ( bool  V = false,
bool  C = true,
bool  CS = true 
)
inline

Definition at line 417 of file ThreadSafetyTraverse.h.

Member Function Documentation

◆ newline()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::newline ( StreamType &  SS)
inlineprotected

◆ precedence()

template<typename Self , typename StreamType >
unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::precedence ( const SExpr E)
inlineprotected

◆ print()

template<typename Self , typename StreamType >
static void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::print ( const SExpr E,
StreamType &  SS 
)
inlinestatic

◆ printAlloc()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printAlloc ( const Alloc E,
StreamType &  SS 
)
inlineprotected

◆ printApply()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printApply ( const Apply E,
StreamType &  SS,
bool  sugared = false 
)
inlineprotected

◆ printArrayAdd()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printArrayAdd ( const ArrayAdd E,
StreamType &  SS 
)
inlineprotected

◆ printArrayIndex()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printArrayIndex ( const ArrayIndex E,
StreamType &  SS 
)
inlineprotected

◆ printBasicBlock()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBasicBlock ( const BasicBlock E,
StreamType &  SS 
)
inlineprotected

◆ printBBInstr()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBBInstr ( const SExpr E,
StreamType &  SS 
)
inlineprotected

◆ printBinaryOp()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBinaryOp ( const BinaryOp E,
StreamType &  SS 
)
inlineprotected

◆ printBlockLabel()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBlockLabel ( StreamType &  SS,
const BasicBlock BB,
int  index 
)
inlineprotected

◆ printBranch()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBranch ( const Branch E,
StreamType &  SS 
)
inlineprotected

◆ printCall()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCall ( const Call E,
StreamType &  SS 
)
inlineprotected

◆ printCast()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCast ( const Cast E,
StreamType &  SS 
)
inlineprotected

◆ printCode()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCode ( const Code E,
StreamType &  SS 
)
inlineprotected

◆ printField()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printField ( const Field E,
StreamType &  SS 
)
inlineprotected

◆ printFunction()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printFunction ( const Function E,
StreamType &  SS,
unsigned  sugared = 0 
)
inlineprotected

◆ printFuture()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printFuture ( const Future E,
StreamType &  SS 
)
inlineprotected

◆ printGoto()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printGoto ( const Goto E,
StreamType &  SS 
)
inlineprotected

◆ printIdentifier()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printIdentifier ( const Identifier E,
StreamType &  SS 
)
inlineprotected

Definition at line 897 of file ThreadSafetyTraverse.h.

References E.

◆ printIfThenElse()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printIfThenElse ( const IfThenElse E,
StreamType &  SS 
)
inlineprotected

◆ printLet()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLet ( const Let E,
StreamType &  SS 
)
inlineprotected

◆ printLiteral()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLiteral ( const Literal E,
StreamType &  SS 
)
inlineprotected

◆ printLiteralPtr()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLiteralPtr ( const LiteralPtr E,
StreamType &  SS 
)
inlineprotected

Definition at line 625 of file ThreadSafetyTraverse.h.

References D, and E.

◆ printLiteralT() [1/2]

template<typename Self , typename StreamType >
template<class T >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLiteralT ( const LiteralT< T > *  E,
StreamType &  SS 
)
inlineprotected

◆ printLiteralT() [2/2]

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLiteralT ( const LiteralT< uint8_t > *  E,
StreamType &  SS 
)
inlineprotected

Definition at line 546 of file ThreadSafetyTraverse.h.

References E.

◆ printLoad()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLoad ( const Load E,
StreamType &  SS 
)
inlineprotected

◆ printNull()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printNull ( StreamType &  SS)
inlineprotected

Definition at line 525 of file ThreadSafetyTraverse.h.

◆ printPhi()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printPhi ( const Phi E,
StreamType &  SS 
)
inlineprotected

◆ printProject()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printProject ( const Project E,
StreamType &  SS 
)
inlineprotected

◆ printReturn()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printReturn ( const Return E,
StreamType &  SS 
)
inlineprotected

◆ printSApply()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSApply ( const SApply E,
StreamType &  SS 
)
inlineprotected

◆ printSCFG()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSCFG ( const SCFG E,
StreamType &  SS 
)
inlineprotected

◆ printSExpr()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSExpr ( const SExpr E,
StreamType &  SS,
unsigned  P,
bool  Sub = true 
)
inlineprotected

◆ printSFunction()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSFunction ( const SFunction E,
StreamType &  SS 
)
inlineprotected

◆ printStore()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printStore ( const Store E,
StreamType &  SS 
)
inlineprotected

◆ printUnaryOp()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printUnaryOp ( const UnaryOp E,
StreamType &  SS 
)
inlineprotected

◆ printUndefined()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printUndefined ( const Undefined E,
StreamType &  SS 
)
inlineprotected

Definition at line 533 of file ThreadSafetyTraverse.h.

◆ printVariable()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printVariable ( const Variable V,
StreamType &  SS,
bool  IsVarDecl = false 
)
inlineprotected

◆ printWildcard()

template<typename Self , typename StreamType >
void clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printWildcard ( const Wildcard E,
StreamType &  SS 
)
inlineprotected

Definition at line 537 of file ThreadSafetyTraverse.h.

◆ self()

template<typename Self , typename StreamType >
Self * clang::threadSafety::til::PrettyPrinter< Self, StreamType >::self ( )
inlineprotected

Definition at line 426 of file ThreadSafetyTraverse.h.

References clang::Self.

Referenced by clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printAlloc(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printApply(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printArrayAdd(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printArrayIndex(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBasicBlock(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBBInstr(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBinaryOp(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printBranch(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCall(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCast(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printCode(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printField(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printFunction(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printFuture(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printLoad(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printPhi(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printProject(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printReturn(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSApply(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSExpr(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printSFunction(), clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printStore(), and clang::threadSafety::til::PrettyPrinter< Self, StreamType >::printUnaryOp().

Member Data Documentation

◆ Prec_Atom

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Atom = 0
staticprotected

◆ Prec_Binary

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Binary = 3
staticprotected

◆ Prec_Decl

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Decl = 5
staticprotected

◆ Prec_MAX

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_MAX = 6
staticprotected

◆ Prec_Other

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Other = 4
staticprotected

◆ Prec_Postfix

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Postfix = 1
staticprotected

◆ Prec_Unary

template<typename Self , typename StreamType >
const unsigned clang::threadSafety::til::PrettyPrinter< Self, StreamType >::Prec_Unary = 2
staticprotected

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