systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindTemplateParameters.h
Go to the documentation of this file.
1#ifndef _FIND_TEMPLATE_PARAMETERS_H_
2#define _FIND_TEMPLATE_PARAMETERS_H_
3
4#include <vector>
5
6#include "clang/AST/RecursiveASTVisitor.h"
7
8#undef DEBUG_TYPE
9#define DEBUG_TYPE "Find"
10
11// Forward declarations.
12namespace clang {
13class CXXRecordDecl;
14}
15
16namespace systemc_clang {
17
19 : public clang::RecursiveASTVisitor<FindTemplateParameters> {
20 public:
21 FindTemplateParameters(clang::CXXRecordDecl *);
22 virtual bool VisitCXXRecordDecl(clang::CXXRecordDecl *decl);
23
25
26 const std::vector<std::string> getTemplateParameters() const;
27 const std::vector<std::string> getTemplateArgs() const;
28
29 void dump();
30
31 private:
32 clang::CXXRecordDecl *declaration_;
33 clang::TemplateParameterList *template_parameters_;
34 const clang::TemplateArgumentList *template_args_;
35};
36} // namespace systemc_clang
37#endif
virtual bool VisitCXXRecordDecl(clang::CXXRecordDecl *decl)
const std::vector< std::string > getTemplateArgs() const
const clang::TemplateArgumentList * template_args_
clang::TemplateParameterList * template_parameters_
const std::vector< std::string > getTemplateParameters() const
Clang forward declarations.
Definition FindArgument.h:6