diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-02 21:54:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-02 21:54:54 +0300 |
commit | df576e3182e79f130a16ebcd0cbda79f58b1eea8 (patch) | |
tree | 5bef185e2ab0e1b31e6060394aadc57ba8f75728 /src/nodes | |
parent | 761a4a76acd6120bf45c0c2dd342c94261672470 (diff) | |
download | paranucker-df576e3182e79f130a16ebcd0cbda79f58b1eea8.tar.gz paranucker-df576e3182e79f130a16ebcd0cbda79f58b1eea8.tar.bz2 paranucker-df576e3182e79f130a16ebcd0cbda79f58b1eea8.tar.xz paranucker-df576e3182e79f130a16ebcd0cbda79f58b1eea8.zip |
Add basic parser and node classes.
Add C++11 flags to make file.
Add common file for gcc plugin includes,
because look this files not have guard header.
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/node.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/nodes/node.h b/src/nodes/node.h new file mode 100644 index 0000000..c1e327d --- /dev/null +++ b/src/nodes/node.h @@ -0,0 +1,37 @@ +/* + * 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_NODE_H +#define NODES_NODE_H + +#include <string> + +struct Node +{ + Node() : + parent(nullptr) + { + } + + Node *parent; + std::string file; + int line; +}; + +#endif // NODES_NODE_H |