]> granicus.if.org Git - clang/commit
[libclang] Introduce a new parsing option 'CXTranslationUnit_SingleFileParse' that...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 9 Jun 2017 01:20:48 +0000 (01:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 9 Jun 2017 01:20:48 +0000 (01:20 +0000)
commit4ed69c25ab95ef923b9917a3c3599665ca7bbda7
tree952df9ebbe1e305b9f001b390ed07bf9f6a91b1a
parent12bfbed8ef5bd7575f1880c93e50d9a1bee5ee8e
[libclang] Introduce a new parsing option 'CXTranslationUnit_SingleFileParse' that puts preprocessor in a mode for parsing a single file only.

This is useful for parsing a single file, as a fast/inaccurate 'mode' that can still provide declarations from the file, like the classes and their methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305044 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
include/clang/Frontend/ASTUnit.h
include/clang/Lex/PreprocessorOptions.h
lib/Frontend/ASTUnit.cpp
lib/Lex/PPDirectives.cpp
test/Index/singe-file-parse.m [new file with mode: 0644]
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp