summaryrefslogtreecommitdiffstats
path: root/src/Lang/Cpp/CppDocGen.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2018-03-02 20:13:53 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2018-03-02 20:24:28 +0100
commitf44c42f1d322b8164b0c736c79eae0f22b5decbc (patch)
tree293e9365d528f0ec64413d3576aa34555670af33 /src/Lang/Cpp/CppDocGen.ts
parentef2e8c5d451188bceaeaa262b49d86081f775098 (diff)
downloaddoxdocgen-f44c42f1d322b8164b0c736c79eae0f22b5decbc.tar.gz
Split CTor and DTor text as well
Diffstat (limited to 'src/Lang/Cpp/CppDocGen.ts')
-rw-r--r--src/Lang/Cpp/CppDocGen.ts9
1 files changed, 7 insertions, 2 deletions
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;
}