On Thu, Aug 18, 2016 at 8:43 AM, Cameron Desrochers via cfe-commits <cfe-commits@lists.llvm.org> wrote: > Author: cameron314 > Date: Thu Aug 18 10:43:55 2016 > New Revision: 279076 > > URL: http://llvm.org/viewvc/llvm-project?rev=279076&view=rev > Log: > [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 > > Modified: > cfe/trunk/include/clang-c/Index.h > cfe/trunk/tools/libclang/CIndex.cpp > cfe/trunk/unittests/libclang/LibclangTest.cpp >
libclangTests fails for me on Linux: cd /export/build/gnu/llvm-clang/build-x86_64-linux/tools/clang/unittests/libclang && /usr/bin/cmake -E cmake_link_script CMakeFiles/libclangTests.dir/link.txt --verbose=1 /usr/bin/g++ -m64 -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O2 -g -DNDEBUG -Wl,-allow-shlib-undefined -Wl,-O3 -Wl,--gc-sections CMakeFiles/libclangTests.dir/LibclangTest.cpp.o -o libclangTests ../../../../lib/libLLVMSupport.a -lpthread ../../../../lib/libgtest_main.a ../../../../lib/libgtest.a -lpthread ../../../../lib/libclang.so.4.0 ../../../../lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -lpthread -Wl,-rpath,"\$ORIGIN/../lib" CMakeFiles/libclangTests.dir/LibclangTest.cpp.o: In function `LibclangParseTest_AllSkippedRanges_Test::TestBody()': /export/gnu/import/git/llvm/tools/clang/unittests/libclang/LibclangTest.cpp:441: undefined reference to `clang_getAllSkippedRanges' collect2: error: ld returned 1 exit status tools/clang/unittests/libclang/CMakeFiles/libclangTests.dir/build.make:99: recipe for target 'tools/clang/unittests/libclang/libclangTests' failed gmake[4]: *** [tools/clang/unittests/libclang/libclangTests] Error 1 gmake[4]: Leaving directory '/export/build/gnu/llvm-clang/build-x86_64-linux' CMakeFiles/Makefile2:32037: recipe for target 'tools/clang/unittests/libclang/CMakeFiles/libclangTests.dir/all' failed -- H.J. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits