Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doxygen handles comments in Objective-C code blocks incorrectly. (Origin: bugzilla #749924) #5791

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.8.9.1 on platform Other
Assigned to: Dimitri van Heesch

On 2015-05-26 18:58:28 +0000, Jack Bennett wrote:

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;
        }
    });
}];

On 2016-05-10 19:30:07 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2016-09-05 13:46:42 +0000, Dimitri van Heesch wrote:

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).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.