clang  3.7.0
Macros | Variables
TypeLoc.cpp File Reference
#include "clang/AST/TypeLoc.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h"
#include "clang/AST/TypeLocVisitor.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/AST/TypeLocNodes.def"
Include dependency graph for TypeLoc.cpp:

Go to the source code of this file.

Macros

#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 
#define ABSTRACT_TYPELOC(CLASS, PARENT)
 
#define TYPELOC(CLASS, PARENT)
 

Variables

static const unsigned TypeLocMaxDataAlign = llvm::alignOf<void *>()
 

Macro Definition Documentation

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define ABSTRACT_TYPELOC (   CLASS,
  PARENT 
)

Definition at line 254 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
return TyLoc.getLocalSourceRange(); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
return(x >> y)|(x<< (32-y))
A trivial tuple used to represent a source range.

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
return TyLoc.getLocalDataAlignment(); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
return(x >> y)|(x<< (32-y))

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
return TyLoc.getLocalDataSize(); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
return(x >> y)|(x<< (32-y))

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
return TyLoc.getNextTypeLoc(); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
return(x >> y)|(x<< (32-y))

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
case CLASS: { \
CLASS##TypeLoc TLCasted = TL.castAs<CLASS##TypeLoc>(); \
TLCasted.initializeLocal(Context, Loc); \
TL = TLCasted.getNextTypeLoc(); \
if (!TL) return; \
continue; \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
T castAs() const
Convert to the specified TypeLoc type, asserting that this TypeLoc is of the desired type...
Definition: TypeLoc.h:53
TypeLoc getNextTypeLoc() const
Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next Typ...
Definition: TypeLoc.h:145
ASTContext * Context
if(T->getSizeExpr()) TRY_TO(TraverseStmt(T-> getSizeExpr()))
return(x >> y)|(x<< (32-y))

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
void Visit##CLASS##TypeLoc(CLASS##TypeLoc dest) { \
dest.copyLocal(Source.castAs<CLASS##TypeLoc>()); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40

Definition at line 255 of file TypeLoc.cpp.

#define TYPELOC (   CLASS,
  PARENT 
)
Value:
bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
return isTypeSpec(TyLoc); \
}
Base wrapper for a particular "section" of type source info.
Definition: TypeLoc.h:40
return(x >> y)|(x<< (32-y))

Definition at line 255 of file TypeLoc.cpp.

Variable Documentation

const unsigned TypeLocMaxDataAlign = llvm::alignOf<void *>()
static

Definition at line 22 of file TypeLoc.cpp.

Referenced by clang::TypeLoc::copy().