From c7e5b941beef6db67f9cbccebd8a595352f13f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 27 Apr 2018 10:35:11 +0200 Subject: [PATCH] Symbol database: Minor tweaks --- lib/symboldatabase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 6da6641d5..f2db4b5b3 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1746,7 +1746,7 @@ Function::Function(const Tokenizer *_tokenizer, const Token *tok, const Scope *s const Token *end = argDef->link(); - // Parse attributes + // parse function attributes.. tok = end->next(); while (tok) { if (tok->str() == "const") @@ -1775,7 +1775,7 @@ Function::Function(const Tokenizer *_tokenizer, const Token *tok, const Scope *s tok = tok->next(); } - if (!_tokenizer->isFunctionHead(end, ";")) { + if (_tokenizer->isFunctionHead(end, ":{")) { // assume implementation is inline (definition and implementation same) token = tokenDef; arg = argDef;