From 5ae892f8267c76473330e5da3d2eafdb4f6447ef Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Mon, 30 Oct 2017 01:46:33 +0100 Subject: -- Completely rewritten parser to support all known(to me) C++ constructs, this includes: - Function pointers as parameters and as returns. - Template support. - Trailing return type. - Variadic templates. - Variadic parametes, C style and template style. - Correct parsing of template types with more then 1 template parameter. --- src/CodeParser/CParser/CppParser.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/CodeParser/CParser/CppParser.ts (limited to 'src/CodeParser/CParser/CppParser.ts') diff --git a/src/CodeParser/CParser/CppParser.ts b/src/CodeParser/CParser/CppParser.ts new file mode 100644 index 0000000..b3279c6 --- /dev/null +++ b/src/CodeParser/CParser/CppParser.ts @@ -0,0 +1,16 @@ +import { Position, TextDocumentContentChangeEvent, TextEditor, TextLine } from "vscode"; +import Generator from "../../DocGen/CGen"; +import { IDocGen } from "../../DocGen/DocGen"; +import CParser from "./CParser"; + +/** + * + * Parses C++ code for methods and signatures + * + * @export + * @class CppParser + * @implements {ICodeParser} + */ +export default class CppParser extends CParser { + // For now C++ is the same as C +} -- cgit v1.2.3