[PATCH] D20124: [PCH] Serialize skipped preprocessor ranges

Cameron via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 16 13:38:26 PST 2017


cameron314 added a comment.

Alright, with my patch the `c-index-test` *does* correctly serialize and restore the skipped ranges; the problem is that it searches for only ranges matching the target file. When there's a preamble, it's seen as a different file than the main file, even though they're really one and the same in this case.

So my test, which uses `clang_getAllSkippedRanges`, passes, but `c-index-test`, which uses `clang_getSkippedRanges`, fails. I'll update my test to use both.

I'm trying to figure out how to fix this.


https://reviews.llvm.org/D20124





More information about the cfe-commits mailing list