summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qdoc/cppcodeparser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp
index 1b18892e93..cab416370a 100644
--- a/src/tools/qdoc/cppcodeparser.cpp
+++ b/src/tools/qdoc/cppcodeparser.cpp
@@ -1585,7 +1585,13 @@ bool CppCodeParser::matchFunctionDecl(Aggregate *parent,
bool createFunctionNode = false;
if (parsingHeaderFile_) {
if (matched_friend) {
+ if (matched_inline) {
+ // nothing yet
+ }
if (body_present) {
+ if (body_expected) {
+ // nothing yet
+ }
createFunctionNode = true;
if (parent && parent->parent())
parent = parent->parent();
@@ -1601,6 +1607,8 @@ bool CppCodeParser::matchFunctionDecl(Aggregate *parent,
if (createFunctionNode) {
func = new FunctionNode(extra.type, parent, name, extra.isAttached);
+ if (matched_friend)
+ access = Node::Public;
func->setAccess(access);
func->setLocation(location());
func->setReturnType(returnType.toString());