Version: git master (using KDE 4.7.3) OS: Linux Variadic macros without any arguments is marked as syntax error, but it's valid and compiles successfully. Reproducible: Always Steps to Reproduce: Use this code: #define log(fmt, args...) fprintf(stderr, fmt, ##args); int main() { log("Error"); // Marked as syntax error log("Error: %d", 1); // OK return 0; } Actual Results: Line log("Error"); is marked as syntax error and tooltip says: Problem in Preprocessor: Call to macro args missing argument number 1 Formals: fmt, args Expected Results: The code is valid, so error shouldn't be reported.
The bug is reproducible but not a duplicate!
Changing status.
*** Bug 288439 has been marked as a duplicate of this bug. ***
Created attachment 69465 [details] Settings of path to the Qt4 documentation.
This is fixed, but the tooltip is still somewhat wrong. For log("Error"); it will show the following tooltip: fprintf(stderr , ,args);
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
Hello! We are working on a new clang-based C/C++ language plugin for KDevelop 5 which supersedes the old C++ plugin in KDevelop 4. See e.g.: https://www.kdevelop.org/news/first-beta-release-kdevelop-500-available Due to a lack of manpower, we cannot fix bugs in the old C++ plugin. We rather want to supply a good Clang based C++ experience for KDevelop 5 than wasting our time on the legacy C++ support for KDevelop 4. With the new clang-based C/C++ language plugin, the bug presented here does not occur. In my testing. For these reasons, I'll close this bug. Please stay tuned for KDevelop 5. If you think this bug is applicable to Clang/KDevelop 5, please reopen the report and add new information on how to reproduce the bug there.