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

#undef is ignored by doxygen (Origin: bugzilla #694147) #5080

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

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

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

On 2013-02-19 07:57:47 +0000, Aleksandr Platonov wrote:

Example code:
#define a someting
#undef a
int a()
{
return 0;
}

Doxyfile:
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = NO
INPUT = test.c

Result:
Macros
#define a someting
Functions
int someting ()

But should be:
Macros
#define a someting
Functions
int a ()

This is regression (#undef works correctly in 1.7.3)

On 2013-06-04 18:21:09 +0000, Dimitri van Heesch wrote:

Thanks, I'll use your patch posted on doxygen-develop:

diff --git a/src/pre.l b/src/pre.l
index 4c017da..6f05d91 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -233,6 +233,7 @@ class DefineManager
{
Define *d = m_contextDefines.find(name);
//printf("isDefined(%s)=%p\n",name,d);

  •  if (d && d->undef) d=0;
    return d;
    
    }
    /** Returns a reference to the defines found in the current context. */

On 2013-08-23 15:04:53 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.5. 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.

@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