#include #include #include "clang/AST/StmtNodes.inc" #include "clang/Basic/Builtins.inc"">

clang: lib/AST/StmtPrinter.cpp File Reference (original) (raw)

#include "[clang/AST/ASTContext.h](ASTContext%5F8h%5Fsource.html)"
#include "[clang/AST/Attr.h](AST%5F2Attr%5F8h%5Fsource.html)"
#include "[clang/AST/Decl.h](Decl%5F8h%5Fsource.html)"
#include "[clang/AST/DeclBase.h](DeclBase%5F8h%5Fsource.html)"
#include "[clang/AST/DeclCXX.h](DeclCXX%5F8h%5Fsource.html)"
#include "[clang/AST/DeclObjC.h](DeclObjC%5F8h%5Fsource.html)"
#include "[clang/AST/DeclOpenMP.h](DeclOpenMP%5F8h%5Fsource.html)"
#include "[clang/AST/DeclTemplate.h](DeclTemplate%5F8h%5Fsource.html)"
#include "[clang/AST/Expr.h](Expr%5F8h%5Fsource.html)"
#include "[clang/AST/ExprCXX.h](ExprCXX%5F8h%5Fsource.html)"
#include "[clang/AST/ExprObjC.h](ExprObjC%5F8h%5Fsource.html)"
#include "[clang/AST/ExprOpenMP.h](ExprOpenMP%5F8h%5Fsource.html)"
#include "[clang/AST/NestedNameSpecifier.h](NestedNameSpecifier%5F8h%5Fsource.html)"
#include "[clang/AST/OpenMPClause.h](OpenMPClause%5F8h%5Fsource.html)"
#include "[clang/AST/PrettyPrinter.h](PrettyPrinter%5F8h%5Fsource.html)"
#include "[clang/AST/Stmt.h](Stmt%5F8h%5Fsource.html)"
#include "[clang/AST/StmtCXX.h](StmtCXX%5F8h%5Fsource.html)"
#include "[clang/AST/StmtObjC.h](StmtObjC%5F8h%5Fsource.html)"
#include "[clang/AST/StmtOpenMP.h](StmtOpenMP%5F8h%5Fsource.html)"
#include "[clang/AST/StmtSYCL.h](StmtSYCL%5F8h%5Fsource.html)"
#include "[clang/AST/StmtVisitor.h](StmtVisitor%5F8h%5Fsource.html)"
#include "[clang/AST/TemplateBase.h](TemplateBase%5F8h%5Fsource.html)"
#include "[clang/AST/Type.h](Type%5F8h%5Fsource.html)"
#include "[clang/Basic/ExpressionTraits.h](ExpressionTraits%5F8h%5Fsource.html)"
#include "[clang/Basic/IdentifierTable.h](IdentifierTable%5F8h%5Fsource.html)"
#include "[clang/Basic/JsonSupport.h](JsonSupport%5F8h%5Fsource.html)"
#include "[clang/Basic/LLVM.h](LLVM%5F8h%5Fsource.html)"
#include "[clang/Basic/Lambda.h](Lambda%5F8h%5Fsource.html)"
#include "[clang/Basic/OpenMPKinds.h](OpenMPKinds%5F8h%5Fsource.html)"
#include "[clang/Basic/OperatorKinds.h](OperatorKinds%5F8h%5Fsource.html)"
#include "[clang/Basic/SourceLocation.h](SourceLocation%5F8h%5Fsource.html)"
#include "[clang/Basic/TypeTraits.h](TypeTraits%5F8h%5Fsource.html)"
#include "[clang/Lex/Lexer.h](Lexer%5F8h%5Fsource.html)"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <optional>
#include <string>
#include "clang/AST/StmtNodes.inc"
#include "clang/Basic/Builtins.inc"

Go to the source code of this file.

Macros
#define ABSTRACT_STMT(CLASS)
#define STMT(CLASS, PARENT) void Visit##CLASS(CLASS *Node);
#define BUILTIN(ID, TYPE, ATTRS)
#define ATOMIC_BUILTIN(ID, TYPE, ATTRS)
Functions
static bool isImplicitSelf (const Expr *E)
static bool printExprAsWritten (raw_ostream &OS, Expr *E, const ASTContext *Context)
Prints the given expression using the original source text.
static void PrintFloatingLiteral (raw_ostream &OS, FloatingLiteral *Node, bool PrintSuffix)
static bool isImplicitThis (const Expr *E)

ABSTRACT_STMT

| #define ABSTRACT_STMT | ( | | CLASS | ) | | ---------------------- | - | | ----- | - |

ATOMIC_BUILTIN

| #define ATOMIC_BUILTIN | ( | | ID, | | -------------------------------------------------------------- | - | | ---------------------------------------------------------- | | | TYPE, | | | | | | ATTRS | | | | | ) | | | |

Value:

case AtomicExpr::AO ## ID: \

Name = #ID "("; \

break;

BUILTIN

| #define BUILTIN | ( | | ID, | | -------------------------------------------------------------- | - | | ---------------------------------------------------------- | | | TYPE, | | | | | | ATTRS | | | | | ) | | | |

STMT

| #define STMT | ( | | CLASS, | | ------------ | ------------------------------------------------------------------------------------------------ | | ------ | | | PARENT | | | | | ) | void Visit##CLASS(CLASS *Node); | | |

isImplicitSelf()

static bool isImplicitSelf ( const Expr * E) static

isImplicitThis()

static bool isImplicitThis ( const Expr * E) static

printExprAsWritten()

static bool printExprAsWritten ( raw_ostream & OS, Expr * E, const ASTContext * Context ) static

PrintFloatingLiteral()

static void PrintFloatingLiteral ( raw_ostream & OS, FloatingLiteral * Node, bool PrintSuffix ) static