This is an archive of the discontinued LLVM Phabricator instance.

[libclang] Add clang_getAllSkippedRanges function
ClosedPublic

Authored by cameron314 on May 10 2016, 1:58 PM.

Details

Summary

This complements the clang_getSkippedRanges function which returns skipped ranges filtered by a specific file.

This function is useful when all the ranges are desired (and a lot more efficient than the equivalent of asking for the ranges file by file, since the implementation of clang_getSkippedRanges iterates over all ranges anyway). We use this internally to populate a database that later gets queried by our IDE.

Diff Detail

Repository
rL LLVM

Event Timeline

cameron314 updated this revision to Diff 56810.May 10 2016, 1:58 PM
cameron314 retitled this revision from to [libclang] Add clang_getAllSkippedRanges function.
cameron314 updated this object.
cameron314 added a reviewer: rsmith.
cameron314 added a subscriber: cfe-commits.
rsmith edited edge metadata.May 10 2016, 7:16 PM

This looks reasonable, but please add a test.

cameron314 updated this revision to Diff 56964.May 11 2016, 2:31 PM
cameron314 edited edge metadata.

Here's a test!

Can someone have a look at this now that there's a test?

rsmith accepted this revision.Aug 17 2016, 2:39 PM
rsmith edited edge metadata.
rsmith added inline comments.
unittests/libclang/LibclangTest.cpp
16–20 ↗(On Diff #56964)

Please put these in alphabetical order.

This revision is now accepted and ready to land.Aug 17 2016, 2:39 PM
cameron314 added inline comments.Aug 18 2016, 6:51 AM
unittests/libclang/LibclangTest.cpp
16–20 ↗(On Diff #56964)

Will do!

This revision was automatically updated to reflect the committed changes.