Bug 136464 - kdevelop flags C function named "emit" as an error
Summary: kdevelop flags C function named "emit" as an error
Status: RESOLVED DUPLICATE of bug 57156
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 63708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-29 16:25 UTC by Harald van Dijk
Modified: 2013-03-31 00:52 UTC (History)
2 users (show)

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 Harald van Dijk 2006-10-29 16:25:38 UTC
Version:           3.3.5 (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages

KDevelop doesn't like functions named "emit". It flags syntax errors on lines 1 and 3 of a file consisting of nothing more than

void emit(void) {
    return;
}

According to bug #51318, it has a special meaning in QT, but I'm not using QT. I'm not even using C++. It would be nice if kdevelop would take that into account.

(Note that this bug is not about the highlighting. Although a declaration of emit gets highlighted wrongly, that's only an issue in C++ mode, and even then easily ignored. This bug is about KDevelop's "Problems" function.)
Comment 1 Jens Dagerbo 2006-12-31 04:04:02 UTC
*** Bug 63708 has been marked as a duplicate of this bug. ***
Comment 2 Jens Dagerbo 2007-01-09 17:53:00 UTC
Even though "emit" technically isn't C++, I think this reports fits well under bug #57156. Dupe.

*** This bug has been marked as a duplicate of 57156 ***
Comment 3 Aleix Pol 2013-03-31 00:52:08 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