clang API Documentation

clang::TypesCompatibleExpr Class Reference

#include <Expr.h>

Inheritance diagram for clang::TypesCompatibleExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::TypesCompatibleExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TypesCompatibleExpr (QualType ReturnType, SourceLocation BLoc, TypeSourceInfo *tinfo1, TypeSourceInfo *tinfo2, SourceLocation RP)
 TypesCompatibleExpr (EmptyShell Empty)
 Build an empty __builtin_type_compatible_p expression.
TypeSourceInfogetArgTInfo1 () const
void setArgTInfo1 (TypeSourceInfo *TInfo)
TypeSourceInfogetArgTInfo2 () const
void setArgTInfo2 (TypeSourceInfo *TInfo)
QualType getArgType1 () const
QualType getArgType2 () const
SourceLocation getBuiltinLoc () const
void setBuiltinLoc (SourceLocation L)
SourceLocation getRParenLoc () const
void setRParenLoc (SourceLocation L)
virtual SourceRange getSourceRange () const
virtual child_iterator child_begin ()
virtual child_iterator child_end ()

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const TypesCompatibleExpr *)

Detailed Description

TypesCompatibleExpr - GNU builtin-in function __builtin_types_compatible_p. This AST node represents a function that returns 1 if two *types* (not expressions) are compatible. The result of this built-in function can be used in integer constant expressions.

Definition at line 2648 of file Expr.h.


Constructor & Destructor Documentation

clang::TypesCompatibleExpr::TypesCompatibleExpr ( QualType  ReturnType,
SourceLocation  BLoc,
TypeSourceInfo tinfo1,
TypeSourceInfo tinfo2,
SourceLocation  RP 
) [inline]

Definition at line 2653 of file Expr.h.

clang::TypesCompatibleExpr::TypesCompatibleExpr ( EmptyShell  Empty  )  [inline, explicit]

Build an empty __builtin_type_compatible_p expression.

Definition at line 2661 of file Expr.h.


Member Function Documentation

Stmt::child_iterator TypesCompatibleExpr::child_begin (  )  [virtual]

Implements clang::Stmt.

Definition at line 2712 of file Expr.cpp.

Stmt::child_iterator TypesCompatibleExpr::child_end (  )  [virtual]

Implements clang::Stmt.

Definition at line 2716 of file Expr.cpp.

static bool clang::TypesCompatibleExpr::classof ( const TypesCompatibleExpr  )  [inline, static]

Definition at line 2684 of file Expr.h.

static bool clang::TypesCompatibleExpr::classof ( const Stmt T  )  [inline, static]

Reimplemented from clang::Expr.

Definition at line 2681 of file Expr.h.

References clang::Stmt::getStmtClass().

TypeSourceInfo* clang::TypesCompatibleExpr::getArgTInfo1 (  )  const [inline]

Definition at line 2664 of file Expr.h.

Referenced by clang::ASTStmtWriter::VisitTypesCompatibleExpr().

TypeSourceInfo* clang::TypesCompatibleExpr::getArgTInfo2 (  )  const [inline]

Definition at line 2666 of file Expr.h.

Referenced by clang::ASTStmtWriter::VisitTypesCompatibleExpr().

QualType clang::TypesCompatibleExpr::getArgType1 (  )  const [inline]

Definition at line 2669 of file Expr.h.

References clang::TypeSourceInfo::getType().

QualType clang::TypesCompatibleExpr::getArgType2 (  )  const [inline]

Definition at line 2670 of file Expr.h.

References clang::TypeSourceInfo::getType().

SourceLocation clang::TypesCompatibleExpr::getBuiltinLoc (  )  const [inline]

Definition at line 2672 of file Expr.h.

Referenced by clang::ASTStmtWriter::VisitTypesCompatibleExpr().

SourceLocation clang::TypesCompatibleExpr::getRParenLoc (  )  const [inline]

Definition at line 2675 of file Expr.h.

Referenced by clang::ASTStmtWriter::VisitTypesCompatibleExpr().

virtual SourceRange clang::TypesCompatibleExpr::getSourceRange (  )  const [inline, virtual]

SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.

Implements clang::Expr.

Definition at line 2678 of file Expr.h.

void clang::TypesCompatibleExpr::setArgTInfo1 ( TypeSourceInfo TInfo  )  [inline]

Definition at line 2665 of file Expr.h.

Referenced by clang::ASTStmtReader::VisitTypesCompatibleExpr().

void clang::TypesCompatibleExpr::setArgTInfo2 ( TypeSourceInfo TInfo  )  [inline]

Definition at line 2667 of file Expr.h.

Referenced by clang::ASTStmtReader::VisitTypesCompatibleExpr().

void clang::TypesCompatibleExpr::setBuiltinLoc ( SourceLocation  L  )  [inline]

Definition at line 2673 of file Expr.h.

Referenced by clang::ASTStmtReader::VisitTypesCompatibleExpr().

void clang::TypesCompatibleExpr::setRParenLoc ( SourceLocation  L  )  [inline]

Definition at line 2676 of file Expr.h.

Referenced by clang::ASTStmtReader::VisitTypesCompatibleExpr().


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