diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-17 14:09:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-17 14:09:34 +0300 |
commit | 23bc397e6f0751cbf7016c3e68b5d92e7ab010bc (patch) | |
tree | 57d64bef942b93bb17f210a4071857c7668008dd /src/nodes | |
parent | 65461f64029c79a8d49d44faa974cf799a2191ff (diff) | |
download | paranucker-23bc397e6f0751cbf7016c3e68b5d92e7ab010bc.tar.gz paranucker-23bc397e6f0751cbf7016c3e68b5d92e7ab010bc.tar.bz2 paranucker-23bc397e6f0751cbf7016c3e68b5d92e7ab010bc.tar.xz paranucker-23bc397e6f0751cbf7016c3e68b5d92e7ab010bc.zip |
Add parsing node TEMPLATE_PARM_INDEX.
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/templateparmindex.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/nodes/templateparmindex.h b/src/nodes/templateparmindex.h new file mode 100644 index 0000000..a89288b --- /dev/null +++ b/src/nodes/templateparmindex.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2015 Andrei Karas + * + * This file is part of AstDumper. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NODES_TEMPLATEPARMINDEXNODE_H +#define NODES_TEMPLATEPARMINDEXNODE_H + +#include "nodes/base/node.h" + +#include <string> + +struct TemplateParmIndexNode : public Node +{ + TemplateParmIndexNode() : + Node(), + descendants(nullptr), + parmDecl(nullptr), + isParameterPack(0), + parmIdx(0), + parmLevel(0), + parmOrigLevel(0) + { + } + + Node *descendants; + Node *parmDecl; + int isParameterPack; + int parmIdx; + int parmLevel; + int parmOrigLevel; +}; + +#endif // NODES_TEMPLATEPARMINDEXNODE_H |