class BuiltinBitCastExpr

Declaration

class BuiltinBitCastExpr : public ExplicitCastExpr,
                           private TrailingObjects { /* full declaration omitted */ };

Description

Represents a C++2a __builtin_bit_cast(T, v) expression. Used to implement std::bit_cast. These can sometimes be evaluated as part of a constant expression, but otherwise CodeGen to a simple memcpy in general.

Declared at: clang/include/clang/AST/ExprCXX.h:4894

Inherits from: ExplicitCastExpr, TrailingObjects

Member Variables

private clang::SourceLocation KWLoc
private clang::SourceLocation RParenLoc

Inherited from Stmt:

protected

Method Overview

  • public BuiltinBitCastExpr(clang::QualType T, clang::ExprValueKind VK, clang::CastKind CK, clang::Expr * SrcExpr, clang::TypeSourceInfo * DstType, clang::SourceLocation KWLoc, clang::SourceLocation RParenLoc)
  • public BuiltinBitCastExpr(clang::Stmt::EmptyShell Empty)
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const

Inherited from ExplicitCastExpr:

Inherited from CastExpr:

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

BuiltinBitCastExpr(
    clang::QualType T,
    clang::ExprValueKind VK,
    clang::CastKind CK,
    clang::Expr* SrcExpr,
    clang::TypeSourceInfo* DstType,
    clang::SourceLocation KWLoc,
    clang::SourceLocation RParenLoc)

Declared at: clang/include/clang/AST/ExprCXX.h:4905

Parameters

clang::QualType T
clang::ExprValueKind VK
clang::CastKind CK
clang::Expr* SrcExpr
clang::TypeSourceInfo* DstType
clang::SourceLocation KWLoc
clang::SourceLocation RParenLoc

BuiltinBitCastExpr(clang::Stmt::EmptyShell Empty)

Declared at: clang/include/clang/AST/ExprCXX.h:4911

Parameters

clang::Stmt::EmptyShell Empty

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/ExprCXX.h:4917

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/ExprCXX.h:4914

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/ExprCXX.h:4915