diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-17 01:38:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-17 01:38:57 +0300 |
commit | 88f88d80582ee232f1bbd1abd904cb290354d609 (patch) | |
tree | 7b07aafc1197ac5ff8b0d64e059d6ae0c9263b25 /src/parsers/type | |
parent | a0223bd55fb867fe3a0e6a348d4b4c0b5c488894 (diff) | |
download | paranucker-88f88d80582ee232f1bbd1abd904cb290354d609.tar.gz paranucker-88f88d80582ee232f1bbd1abd904cb290354d609.tar.bz2 paranucker-88f88d80582ee232f1bbd1abd904cb290354d609.tar.xz paranucker-88f88d80582ee232f1bbd1abd904cb290354d609.zip |
Add parsing node TYPENAME_TYPE.
Diffstat (limited to 'src/parsers/type')
-rw-r--r-- | src/parsers/type/typename_type.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/parsers/type/typename_type.cpp b/src/parsers/type/typename_type.cpp new file mode 100644 index 0000000..8d183d3 --- /dev/null +++ b/src/parsers/type/typename_type.cpp @@ -0,0 +1,49 @@ +/* + * 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/>. + */ + +#include "includes/parserincludes.h" + +parserDefine(TypeNameType); + +#include "parsers/base/type.h" + +#include "nodes/type/typename_type.h" + +namespace Generic +{ + +void parseTypeNameTypeNode(TypeNameTypeNode *node) +{ + fillType(node); + Log::dump(node); + + setPrintField(node, TYPENAME_IS_ENUM_P, isEnum); + setPrintField(node, TYPENAME_IS_CLASS_P, isClass); + setPrintField(node, TYPENAME_IS_RESOLVING_P, isResolving); + + fillTypeName(node); + fillTypeAttributes(node); + + node->fullName = createParseNode( + node, + TYPENAME_TYPE_FULLNAME(node->gccNode), + "full name"); +} + +} |