Skip to content

Commit

Permalink
moved CppTemplateArg from cppast to parser
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyaRanjanDas-tomtom committed Nov 12, 2024
1 parent f6f2ff8 commit aa2175d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 26 deletions.
1 change: 0 additions & 1 deletion cppast/include/cppast/cpp_entities.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "cppast/cpp_preprocessor_unrecognized.h"
#include "cppast/cpp_preprocessor_warning.h"
#include "cppast/cpp_return_statement.h"
#include "cppast/cpp_template_arg.h"
#include "cppast/cpp_throw_statement.h"
#include "cppast/cpp_try_block.h"
#include "cppast/cpp_type_alias.h"
Expand Down
2 changes: 0 additions & 2 deletions cppast/include/cppast/cpp_entity_ptr_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ using CppReturnStatementEPtr = helper::CppEntityPtr<CppReturnStatement
using CppStaticCastExprEPtr = helper::CppEntityPtr<CppStaticCastExpr>;
using CppStringLiteralExprEPtr = helper::CppEntityPtr<CppStringLiteralExpr>;
using CppSwitchBlockEPtr = helper::CppEntityPtr<CppSwitchBlock>;
using CppTemplateArgEPtr = helper::CppEntityPtr<CppTemplateArg>;
using CppThrowStatementEPtr = helper::CppEntityPtr<CppThrowStatement>;
using CppTrinomialExprEPtr = helper::CppEntityPtr<CppTrinomialExpr>;
using CppTryBlockEPtr = helper::CppEntityPtr<CppTryBlock>;
Expand Down Expand Up @@ -132,7 +131,6 @@ using CppConstReturnStatementEPtr = helper::CppEntityPtr<const CppRetu
using CppConstStaticCastExprEPtr = helper::CppEntityPtr<const CppStaticCastExpr>;
using CppConstStringLiteralExprEPtr = helper::CppEntityPtr<const CppStringLiteralExpr>;
using CppConstSwitchBlockEPtr = helper::CppEntityPtr<const CppSwitchBlock>;
using CppConstTemplateArgEPtr = helper::CppEntityPtr<const CppTemplateArg>;
using CppConstThrowStatementEPtr = helper::CppEntityPtr<const CppThrowStatement>;
using CppConstTrinomialExprEPtr = helper::CppEntityPtr<const CppTrinomialExpr>;
using CppConstTryBlockEPtr = helper::CppEntityPtr<const CppTryBlock>;
Expand Down
22 changes: 0 additions & 22 deletions cppast/include/cppast/cpp_template_arg.h

This file was deleted.

8 changes: 7 additions & 1 deletion cppparser/src/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ extern int yylex();

using namespace cppast;

// FIXME: Improve template arg parsing.
// Template argument needs more robust support.
// As of now we are treating them just as string.
// But for parsing we need to have a type.
class CppTemplateArg;

%}

%union {
Expand Down Expand Up @@ -170,7 +176,7 @@ using namespace cppast;
bool inheritType;
std::vector<std::string>* identifierList;
std::vector<std::string>* funcThrowSpec;
cppast::CppTemplateArg* templateArg;
class CppTemplateArg* templateArg;
cppast::CppAsmBlock* asmBlock;
cppast::CppCompoundType compoundType;
unsigned short ptrLevel;
Expand Down

0 comments on commit aa2175d

Please sign in to comment.