systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
SignalDecl.cpp
Go to the documentation of this file.
1#include "clang/AST/DeclCXX.h"
2#include "llvm/Support/Debug.h"
3
4#include "SignalDecl.h"
5#include "FindTemplateTypes.h"
6
7using namespace systemc_clang;
8
10 DEBUG_WITH_TYPE("DebugDestructors", llvm::dbgs() << "~SignalDecl\n";);
11}
12
14
15SignalDecl::SignalDecl(const std::string &name, clang::FieldDecl *fd,
17 : PortDecl{name, fd, tt} {}
18
20
21std::string SignalDecl::getName() const { return PortDecl::getName(); }
22
26
27const clang::FieldDecl *SignalDecl::getASTNode() const {
29}
30
31std::string SignalDecl::asString() const {
32 std::string str{};
33
34 str += "signal_name: " + getName() + "\n";
35 str += PortDecl::asString() + "\n";
36
37 return str;
38}
39
std::string getName() const
Definition PortDecl.cpp:77
std::string asString() const
Produce dump.
Definition PortDecl.cpp:89
clang::FieldDecl * getAsFieldDecl() const
Definition PortDecl.cpp:79
FindTemplateTypes * getTemplateType()
Definition PortDecl.cpp:87
const clang::FieldDecl * getASTNode() const
Return the AST node found for the signal declaration.
FindTemplateTypes * getTemplateTypes()
Return the template types that were found.
virtual ~SignalDecl()
Default destrubtor.
Definition SignalDecl.cpp:9
std::string getName() const
Get parameters.
std::string asString() const
Dump to string.
SignalDecl()
Constructors.