| 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 First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
*** Bug 63708 has been marked as a duplicate of this bug. *** 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 *** 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 |
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.)