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 749924 - Doxygen handles comments in Objective-C code blocks incorrectly.
Doxygen handles comments in Objective-C code blocks incorrectly.
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.9.1
Other Mac OS
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2015-05-26 18:58 UTC by Jack Bennett
Modified: 2016-09-05 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jack Bennett 2015-05-26 18:58:28 UTC
The following BEFORE and AFTER chunks of code show that Doxygen mangles comments that occur inside Objective-C code blocks when processing a @snippet. In the AFTER chunk, note how the comment "// Reveal Show Payoff button to enable redirection to payoff." and the following line "//" have been moved outside the code block and the end-of-line characters for those two comment lines have been removed.

BEFORE (the source code):
    // Resolve payload.
    //
    [self.resolver resolve:payload completionBlock:^(DMResolveResult *result, NSError *error) {
        dispatch_async(dispatch_get_main_queue(), ^{
            if (error) {
                [self showError:error];
            } else {
                
                // Reveal Show Payoff button to enable redirection to payoff.
                //
                self.payoff = (DMPayoff *) result.payoff;
                self.showActivityIndicator = NO;
                self.showPayoffButton.hidden = NO;
            }
        });
    }];

AFTER (the presented code):
    // Resolve payload.
    //
    // Reveal Show Payoff button to enable redirection to payoff.//[self.resolver resolve:payload completionBlock:^(DMResolveResult *result, NSError *error) {
        dispatch_async(dispatch_get_main_queue(), ^{
            if (error) {
                [self showError:error];
            } else {
                
                
                
                self.payoff = (DMPayoff *) result.payoff;
                self.showActivityIndicator = NO;
                self.showPayoffButton.hidden = NO;
            }
        });
    }];
Comment 1 Dimitri van Heesch 2016-05-10 19:30:07 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2016-09-05 13:46:42 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.12. 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 (preferably in the form of a self-contained example).