single line files without newline show findings as global message
int f(int*p){return *p;}

If you add the newline at the end of the line it shows up in the Problems tab as expected.
I tried using DocumentUtil.getLineTextRange() for the TextRange generation instead but it lead to the same result. So it appears this is an upstream issue. Needs more investigating.
We should still use the simplified calculation though.
I tried using
DocumentUtil.getLineTextRange()for theTextRangegeneration instead but it lead to the same result. So it appears this is an upstream issue. Needs more investigating.We should still use the simplified calculation though.
This actually leads to the whole line (including leading whitespaces) being highlighted. So that should not be used at all.