File tree Expand file tree Collapse file tree 4 files changed +7
-26
lines changed Expand file tree Collapse file tree 4 files changed +7
-26
lines changed Original file line number Diff line number Diff line change 25
25
#include "cppast/cpp_preprocessor_unrecognized.h"
26
26
#include "cppast/cpp_preprocessor_warning.h"
27
27
#include "cppast/cpp_return_statement.h"
28
- #include "cppast/cpp_template_arg.h"
29
28
#include "cppast/cpp_throw_statement.h"
30
29
#include "cppast/cpp_try_block.h"
31
30
#include "cppast/cpp_type_alias.h"
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ using CppReturnStatementEPtr = helper::CppEntityPtr<CppReturnStatement
62
62
using CppStaticCastExprEPtr = helper::CppEntityPtr<CppStaticCastExpr>;
63
63
using CppStringLiteralExprEPtr = helper::CppEntityPtr<CppStringLiteralExpr>;
64
64
using CppSwitchBlockEPtr = helper::CppEntityPtr<CppSwitchBlock>;
65
- using CppTemplateArgEPtr = helper::CppEntityPtr<CppTemplateArg>;
66
65
using CppThrowStatementEPtr = helper::CppEntityPtr<CppThrowStatement>;
67
66
using CppTrinomialExprEPtr = helper::CppEntityPtr<CppTrinomialExpr>;
68
67
using CppTryBlockEPtr = helper::CppEntityPtr<CppTryBlock>;
@@ -132,7 +131,6 @@ using CppConstReturnStatementEPtr = helper::CppEntityPtr<const CppRetu
132
131
using CppConstStaticCastExprEPtr = helper::CppEntityPtr<const CppStaticCastExpr>;
133
132
using CppConstStringLiteralExprEPtr = helper::CppEntityPtr<const CppStringLiteralExpr>;
134
133
using CppConstSwitchBlockEPtr = helper::CppEntityPtr<const CppSwitchBlock>;
135
- using CppConstTemplateArgEPtr = helper::CppEntityPtr<const CppTemplateArg>;
136
134
using CppConstThrowStatementEPtr = helper::CppEntityPtr<const CppThrowStatement>;
137
135
using CppConstTrinomialExprEPtr = helper::CppEntityPtr<const CppTrinomialExpr>;
138
136
using CppConstTryBlockEPtr = helper::CppEntityPtr<const CppTryBlock>;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ extern int yylex();
129
129
130
130
using namespace cppast ;
131
131
132
+ // FIXME: Improve template arg parsing.
133
+ // Template argument needs more robust support.
134
+ // As of now we are treating them just as string.
135
+ // But for parsing we need to have a type.
136
+ class CppTemplateArg ;
137
+
132
138
%}
133
139
134
140
%union {
@@ -170,7 +176,7 @@ using namespace cppast;
170
176
bool inheritType;
171
177
std::vector<std::string>* identifierList;
172
178
std::vector<std::string>* funcThrowSpec;
173
- cppast:: CppTemplateArg* templateArg;
179
+ class CppTemplateArg * templateArg;
174
180
cppast::CppAsmBlock* asmBlock;
175
181
cppast::CppCompoundType compoundType;
176
182
unsigned short ptrLevel;
You can’t perform that action at this time.
0 commit comments