Summary: | Function pointers with parameters have incorrect type | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | teemu.patana |
Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.3.1 | ||
Target Milestone: | 4.3.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdevelop/81ec5b516fb1ea21fc5344ccf71488bbdec1f649 | Version Fixed In: | |
Sentry Crash Report: |
Description
teemu.patana
2012-09-30 18:18:08 UTC
Git commit 81ec5b516fb1ea21fc5344ccf71488bbdec1f649 by Milian Wolff. Committed on 28/01/2013 at 00:52. Pushed by mwolff into branch '4.5'. Add basic support for typedef'ed function pointers. Properly deduce the function type and create correct declarations with the identifier of the sub_declaration id in cases such as: void (*funcptr)(int x); funcptr myFunc; int main() { myFunc(0); } Related: bug 286208 DIGEST: M +20 -4 languages/cpp/cppduchain/declarationbuilder.cpp M +12 -4 languages/cpp/cppduchain/tests/test_duchain.cpp http://commits.kde.org/kdevelop/81ec5b516fb1ea21fc5344ccf71488bbdec1f649 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 |