diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-06-09 01:20:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-06-09 01:20:48 +0000 |
commit | 735e92c29a1413761c6db5e1ae8e7ad48ae17d67 (patch) | |
tree | bcf8f6f8bbafe724dee521d1bd8943fc04e363ab /clang/include/clang-c | |
parent | fdf499bf2d589bee2a6a3da49a74840c4c511c59 (diff) | |
download | bcm5719-llvm-735e92c29a1413761c6db5e1ae8e7ad48ae17d67.tar.gz bcm5719-llvm-735e92c29a1413761c6db5e1ae8e7ad48ae17d67.zip |
[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.
llvm-svn: 305044
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 987ba710232..417ac9fd369 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -32,7 +32,7 @@ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 42 +#define CINDEX_VERSION_MINOR 43 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -1234,7 +1234,12 @@ enum CXTranslationUnit_Flags { * purposes of an IDE, this is undesirable behavior and as much information * as possible should be reported. Use this flag to enable this behavior. */ - CXTranslationUnit_KeepGoing = 0x200 + CXTranslationUnit_KeepGoing = 0x200, + + /** + * \brief Sets the preprocessor in a mode for parsing a single file only. + */ + CXTranslationUnit_SingleFileParse = 0x400 }; /** |