]> granicus.if.org Git - clang/commit
[libclang] Add clang_getAllSkippedRanges function
authorCameron Desrochers <cameron@moodycamel.com>
Thu, 18 Aug 2016 15:43:55 +0000 (15:43 +0000)
committerCameron Desrochers <cameron@moodycamel.com>
Thu, 18 Aug 2016 15:43:55 +0000 (15:43 +0000)
commit840ee0d0622586ef77295a5f0a1000494a9a1f48
tree8606a63ec44bf5be60606a5027751992577c8508
parentac4644401fe7e7305aed433541d6274203a69b97
[libclang] Add clang_getAllSkippedRanges function

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).

Differential Revision: https://reviews.llvm.org/D20132

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279076 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
tools/libclang/CIndex.cpp
unittests/libclang/LibclangTest.cpp