From f44c42f1d322b8164b0c736c79eae0f22b5decbc Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 2 Mar 2018 20:13:53 +0100 Subject: Split CTor and DTor text as well --- src/Lang/Cpp/CppDocGen.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Lang/Cpp/CppDocGen.ts') diff --git a/src/Lang/Cpp/CppDocGen.ts b/src/Lang/Cpp/CppDocGen.ts index d93c858..1a03430 100644 --- a/src/Lang/Cpp/CppDocGen.ts +++ b/src/Lang/Cpp/CppDocGen.ts @@ -3,6 +3,7 @@ import { Position, Range, Selection, TextEditor, TextLine, WorkspaceEdit } from import { IDocGen } from "../../Common/IDocGen"; import { Config } from "../../Config"; import { CppArgument } from "./CppArgument"; +import * as CppParser from "./CppParser"; import { CppParseTree } from "./CppParseTree"; import { CppToken, CppTokenType } from "./CppToken"; @@ -115,7 +116,9 @@ export class CppDocGen implements IDocGen { if (this.func.name === null) { return ""; } else { - val = this.splitCasing(this.func.name.trim()); + const ctorText = this.func.name.trim(); + this.casingType = CppParser.default.checkCasing(ctorText, 0); + val = this.splitCasing(ctorText).trim(); text = this.cfg.Cpp.ctorText; break; } @@ -124,7 +127,9 @@ export class CppDocGen implements IDocGen { if (this.func.name === null) { return ""; } else { - val = this.splitCasing(this.func.name.replace("~", "").trim()); + const dtorText = this.func.name.replace("~", "").trim(); + this.casingType = CppParser.default.checkCasing(dtorText, 0); + val = this.splitCasing(dtorText).trim(); text = this.cfg.Cpp.dtorText; break; } -- cgit v1.2.3