After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735623 - Expression is always false because 'else if' condition matches previous condition
Expression is always false because 'else if' condition matches previous condi...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.8-GIT
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-08-28 17:56 UTC by Ettl Martin
Modified: 2014-12-25 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ettl Martin 2014-08-28 17:56:48 UTC
Please take a look at following code from translator_ua.h (function: trCompoundReferenceFortran, line 1585:

      if (isTemplate) // (1)
      {
	switch(compType)
	{
	  case ClassDef::Class:      result+=" Модуль"; break;
	  case ClassDef::Struct:     result+=" Тип"; break;
	  case ClassDef::Union:      result+=" Об'єднання"; break;
	  case ClassDef::Interface:  result+=" Інтерфейс"; break;
	  case ClassDef::Protocol:   result+=" Протокол"; break;
	  case ClassDef::Category:   result+=" Категорія"; break;
	  case ClassDef::Exception:  result+=" Виняток"; break;
          default: break;
	}
      }
      else
      {
	if (isTemplate) result+=" Шаблон "; // (2)

....

In the first condition (1), the if statement checks if 'isTemplate' is set. Otherwise the else branch is taken. In the else branch it is checked again, if 'isTemplate' is set (2). This condition is always false and can be removed, or there is some copy and paste error. 


Best regards and many thanks

Martin Ettl
Comment 1 Dimitri van Heesch 2014-08-30 19:26:47 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2014-12-25 16:02:42 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferrably in the form of a self-contained example).