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/parsers | |
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/parsers')
-rw-r--r-- | src/parsers/generic.cpp | 33 | ||||
-rw-r--r-- | src/parsers/generic.h | 32 |
2 files changed, 65 insertions, 0 deletions
diff --git a/src/parsers/generic.cpp b/src/parsers/generic.cpp new file mode 100644 index 0000000..d5016eb --- /dev/null +++ b/src/parsers/generic.cpp @@ -0,0 +1,33 @@ +/* + * 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 "parsers/generic.h" + +#include "localconsts.h" + +extern int plugin_is_GPL_compatible; + +namespace Generic +{ + +void parseNodes(tree node) +{ +} + +} diff --git a/src/parsers/generic.h b/src/parsers/generic.h new file mode 100644 index 0000000..f40fdae --- /dev/null +++ b/src/parsers/generic.h @@ -0,0 +1,32 @@ +/* + * 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 PARSERS_GENERIC_H +#define PARSERS_GENERIC_H + +#include "plugin.h" + +#include <string> + +namespace Generic +{ + void parseNodes(tree node); +} + +#endif // PARSERS_GENERIC_H |