TargetCodeDecl
This class represents a declaration, i.e. More...
#include <TargetCodeFragment.h>
Inherits from TargetCodeFragment
Public Functions
Name | |
---|---|
bool | classof(const TargetCodeFragment * TCF) |
TargetCodeDecl(clang::Decl * Node) | |
virtual std::string | PrintPretty() override Do pretty printing. |
virtual clang::SourceRange | getRealRange() override Get source range. |
virtual clang::SourceRange | getSpellingRange() override Get spelling range. |
Private Attributes
Name | |
---|---|
clang::Decl * | DeclNode The AST node for the declaration. |
Additional inherited members
Public Types inherited from TargetCodeFragment
Name | |
---|---|
enum | TargetCodeFragmentKind { TCFK_TargetCodeFragment, TCFK_TargetCodeRegion, TCFK_TargetCodeDecl} Enum for LLVMs RTTI. |
Public Functions inherited from TargetCodeFragment
Name | |
---|---|
TargetCodeFragmentKind | getKind() const Accessor for LLVMs RTTI. |
TargetCodeFragment(clang::ASTContext & Context, TargetCodeFragmentKind Kind) | |
virtual | ~TargetCodeFragment() =0 Destroy the Target Code Fragment:: Target Code Fragment object. |
virtual clang::SourceRange | getInnerRange() Gets the 'inner' source range. |
clang::OpenMPDirectiveKind | getTargetCodeKind() Accessor to TargetCodeKind. |
const clang::LangOptions & | GetLangOpts() Accessor to lang opts of the current context. |
clang::PrintingPolicy | getPP() |
Public Attributes inherited from TargetCodeFragment
Name | |
---|---|
bool | NeedsSemicolon Does the source code generation need to add a semicolon to this fragment. |
clang::OpenMPDirectiveKind | TargetCodeKind What kind of code are we copying. |
bool | HasExtraBraces |
Protected Attributes inherited from TargetCodeFragment
Name | |
---|---|
const TargetCodeFragmentKind | Kind Variable for LLVMs RTTI. |
clang::ASTContext & | Context |
clang::PrintingPolicy | PP |
Detailed Description
1 |
|
This class represents a declaration, i.e.
a function, global varialbe, or type declaration that need to be copied from the input source code to the generated source code.
Public Functions Documentation
function classof
1 2 3 |
|
function TargetCodeDecl
1 2 3 |
|
function PrintPretty
1 |
|
Do pretty printing.
Return: std::string Pretty output
Reimplements: TargetCodeFragment::PrintPretty
function getRealRange
1 |
|
Get source range.
Return: clang::SourceRange
Reimplements: TargetCodeFragment::getRealRange
function getSpellingRange
1 |
|
Get spelling range.
Return: clang::SourceRange
Reimplements: TargetCodeFragment::getSpellingRange
Private Attributes Documentation
variable DeclNode
1 |
|
The AST node for the declaration.