https://bugs.kde.org/show_bug.cgi?id=369546
Milian Wolff <m...@milianw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|REPORTED |RESOLVED Latest Commit| |https://invent.kde.org/kde/ | |kdevelop/commit/54585bcd0de | |5ca4ce0618accfa39967f6c7d22 | |f0 --- Comment #14 from Milian Wolff <m...@milianw.de> --- Git commit 54585bcd0de5ca4ce0618accfa39967f6c7d22f0 by Milian Wolff. Committed on 20/01/2020 at 14:06. Pushed by mwolff into branch 'master'. Fix ClangUtils::getDefaultArguments when encountering macros Use ClangUtils::getRawContents instead of manual tokenization. This is apparently more reliable and gives us the user-written text which is imo the best we can hope for. I.e. now the user will see e.g. foo(int a = INT_MAX) Which is way more expressive then us displaying the macro value. We may want to replace more usages of clang_getTokenSpelling with ClangUtils::getRawContents... M +9 -0 plugins/clang/tests/files/defaultparameters.cpp M +1 -5 plugins/clang/util/clangutils.cpp https://invent.kde.org/kde/kdevelop/commit/54585bcd0de5ca4ce0618accfa39967f6c7d22f0 -- You are receiving this mail because: You are watching all bug changes.