Bug 136464

Summary: kdevelop flags C function named "emit" as an error
Product: [Applications] kdevelop Reporter: Harald van Dijk <truedfx>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: cproch, esigra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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