Bug 300155 - problem recognizing variadic macro
Summary: problem recognizing variadic macro
Status: RESOLVED DUPLICATE of bug 308556
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.3.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-16 19:01 UTC by Matthew Woehlke
Modified: 2013-03-31 00:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Woehlke 2012-05-16 19:01:42 UTC
KDevelop does not recognize this variadic macro:

#define LOG_ERROR(fmt, args... ) fprintf(stderr, fmt, ##args);

Specifically, the parser appears to be confused by the space between "..." and ")". This is reproducible with other, similar macros, following the same pattern:
  no space => macro is recognized
  space => macro is not recognized

Non-variadic macros with spaces in the declaration are recognized as expected.

Reproducible: Always
Comment 1 Kevin Funk 2012-11-05 07:56:10 UTC

*** This bug has been marked as a duplicate of bug 308556 ***
Comment 2 Aleix Pol 2013-03-31 00:50:49 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively