summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CodeParser/CParser.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CodeParser/CParser.ts b/src/CodeParser/CParser.ts
index 09fd5da..99d01fc 100644
--- a/src/CodeParser/CParser.ts
+++ b/src/CodeParser/CParser.ts
@@ -82,8 +82,10 @@ export default class CParser implements ICodeParser {
protected getReturn(method: string): string[] {
const retVals: string[] = [];
+ // Remove the compiler keywords from the signature
+ const sign: string = method.replace(/(static)|(inline)|(friend)|(virtual)|(extern)|(explicit)/g, "");
// Remove the parameters from the signature
- const returnSignature: string = method.slice(0, method.indexOf("(")).trim();
+ const returnSignature = sign.slice(0, sign.indexOf("(")).trim();
if (returnSignature.indexOf(" ") === -1) { // Constructor or similar
return retVals;