diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-12-27 11:22:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-12-27 11:22:30 (GMT) |
commit | 8da86f8adfb826f13321c7d163431f9671ba20b7 (patch) | |
tree | 12b83f4bcf250e22fb44944568bd0dabb21b203b /src/scanner.l | |
parent | 303b5b58955fd7122fe361d5146f6a9334a41997 (diff) | |
download | Doxygen-8da86f8adfb826f13321c7d163431f9671ba20b7.zip Doxygen-8da86f8adfb826f13321c7d163431f9671ba20b7.tar.gz Doxygen-8da86f8adfb826f13321c7d163431f9671ba20b7.tar.bz2 |
Bug 746361 - Doxygen thinks C++ class is Objective-C
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index d603824..fc6dc84 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -4093,6 +4093,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) current_root->addSubEntry( current ) ; current=new Entry; initEntry(); + language = current->lang = SrcLangExt_Cpp; // see bug746361 insideObjC=FALSE; BEGIN( FindMembers ); } @@ -5382,6 +5383,11 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) unput(';'); current->reset(); initEntry(); + if (insideObjC) // see bug746361 + { + language = current->lang = SrcLangExt_Cpp; + insideObjC = FALSE; + } if (isTypedef) // typedef of a class, put typedef keyword back { current->type.prepend("typedef"); |