Re: [Qt-creator] Issue parsing QStringLiteral() in SpellChecker Plugin

2015-07-30 Thread Carel Combrink
Hi Kikolai, Looks like a bug on Windows - there I also get the +2 lines difference. I agree with you, on Linux I was able to implement your suggestion and now my SpellChecker works correctly for QStringLiterals. PS: I have no way to test on Mac so the code will be enabled if building from

Re: [Qt-creator] Issue parsing QStringLiteral() in SpellChecker Plugin

2015-07-28 Thread Nikolai Kosjar
Hiya! On 07/25/2015 10:30 PM, Carel Combrink wrote: Due to the expansion of the macro, I am finding it rather hard to get the position of the words as the user sees it, not my plugin. For example if I have a mistake on line: 8, Col: 63 (reported by QtC), my parser sees 2 instances of the

Re: [Qt-creator] Issue parsing QStringLiteral() in SpellChecker Plugin

2015-07-26 Thread Typz
Hello, At the moment, there are two levels of preprocessing: full preprocessor is used for code analysis, while fast preprocessor is used for highlighting... With fast preprocessor, QStringLiteral should not be expanded. So just running fast preprocessor on the source code before parsing