[gnome-builder] clang: hide some flags behind 0.35 check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: hide some flags behind 0.35 check
- Date: Thu, 18 Jan 2018 14:57:15 +0000 (UTC)
commit abfa5a388d8e0dcc76a4f8c4171564aa28edbc99
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 18 06:56:57 2018 -0800
clang: hide some flags behind 0.35 check
Not sure the exact version for these, but lets start with this.
src/plugins/clang/ide-clang-code-indexer.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/clang/ide-clang-code-indexer.c b/src/plugins/clang/ide-clang-code-indexer.c
index e52627c8d..10a403cfa 100644
--- a/src/plugins/clang/ide-clang-code-indexer.c
+++ b/src/plugins/clang/ide-clang-code-indexer.c
@@ -67,9 +67,11 @@ ide_clang_code_indexer_index_file_worker (GTask *task,
g_strv_length (br->build_flags),
NULL,
0,
- (CXTranslationUnit_SingleFileParse |
+ (CXTranslationUnit_DetailedPreprocessingRecord |
+#if CINDEX_VERSION >= CINDEX_VERSION_ENCODE(0, 35)
+ CXTranslationUnit_SingleFileParse |
CXTranslationUnit_KeepGoing |
- CXTranslationUnit_DetailedPreprocessingRecord |
+#endif
CXTranslationUnit_SkipFunctionBodies),
&unit);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]