diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-12 19:46:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-12 19:46:47 +0300 |
commit | 7211bddb9a9708dc2390469a3997d994ce09c894 (patch) | |
tree | cdff41d5af0638deaf6876d55e49bd12c1f1acb4 /src/parsers | |
parent | 187a1faff0f95e2e115d9f9ffeee3a0fb65dde30 (diff) | |
download | paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.gz paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.bz2 paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.xz paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.zip |
Add parsing node SIZEOF_EXPR.
Diffstat (limited to 'src/parsers')
-rw-r--r-- | src/parsers/expr/sizeof_expr.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/parsers/expr/sizeof_expr.cpp b/src/parsers/expr/sizeof_expr.cpp new file mode 100644 index 0000000..06bb194 --- /dev/null +++ b/src/parsers/expr/sizeof_expr.cpp @@ -0,0 +1,40 @@ +/* + * 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(SizeOfExpr); + +#include "parsers/base/expr.h" + +#include "nodes/expr/sizeof_expr.h" + +namespace Generic +{ + +void parseSizeOfExprNode(SizeOfExprNode *node) +{ + fillType(node); + fillExprLocation(node); + Log::dump(node); + + fillExprOperands(node); +} + +} |