[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)
commitd80912871d9a96fa06b904ee73113defe3ff8689
treefd8b8e60d6e087aaeb88253bab4af2d825a15d49
parentccdceda1282fa48f304e0cd0c1b6f6861be7dcd3
[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

llvm-svn: 279076
clang/include/clang-c/Index.h
clang/tools/libclang/CIndex.cpp
clang/unittests/libclang/LibclangTest.cpp