It seems like there's no reason not to use the up-to-date information we have in TUSkipBodyControl::isParsed().
I compared performance on small part of clang compilation database - seems like it might be tiny bit faster.
WDYT?
/usr/bin/time fish -c "bin/c-index-test -index-compile-db compile_commands.json > /dev/null ^ /dev/null"
master 30.66 real 30.20 user 0.45 sys
master 30.49 real 29.98 user 0.47 sys
master 30.34 real 29.88 user 0.45 sys
patched 30.41 real 29.95 user 0.45 sys
patched 29.89 real 29.44 user 0.44 sys
patched 29.72 real 29.26 user 0.45 sys