background parser unaware of tokens set with CMake's add_definitions()?

René J.V. Bertin rjvbertin at gmail.com
Tue Nov 8 08:11:21 UTC 2016


On Tuesday November 08 2016 02:10:14 Aleix Pol wrote:

Hi,

>Check whether they're in compile_commands.json. If not, I'd recommend
>to create a test case and report to upstream cmake directly.

They are. What I missed (and had me pulling my hair for a while for other reasons) is that the file is used in 2 targets, the second of which doesn't set the tokens. Not sure how I'd expect the parser to hande that :)
IOW, this is a bit of a garbage in, garbage out case. Sorry for the noise.

R.


More information about the KDevelop-devel mailing list