aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-01-16 13:16:10 +0100
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-01-16 12:23:37 +0000
commit40383715f758ce41d1ed03d904e6cf66e15db5da (patch)
treeb3acef41ced22122673b6f95b5ef2d7f5f7b5c32 /dist
parentc57b06b9e6489b2ef0e2893991edd77eff724051 (diff)
Clang: Fix linkage in clang patch
Change-Id: I89759ff1b5d7cc9f17c74e34dc21479e91ee93a8 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'dist')
-rw-r--r--dist/clang/patches/180_D39903_libclang-Allow-pretty-printing-declarations.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/dist/clang/patches/180_D39903_libclang-Allow-pretty-printing-declarations.patch b/dist/clang/patches/180_D39903_libclang-Allow-pretty-printing-declarations.patch
index 77e6da398f..6f22014ad3 100644
--- a/dist/clang/patches/180_D39903_libclang-Allow-pretty-printing-declarations.patch
+++ b/dist/clang/patches/180_D39903_libclang-Allow-pretty-printing-declarations.patch
@@ -1,5 +1,5 @@
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
-index 0f4ade266c..d6ad37ffaa 100644
+index 0f4ade266c..f188ec9d8c 100644
--- a/tools/clang/include/clang-c/Index.h
+++ b/tools/clang/include/clang-c/Index.h
@@ -35,6 +35,7 @@
@@ -10,7 +10,7 @@ index 0f4ade266c..d6ad37ffaa 100644
#define CINDEX_VERSION_ENCODE(major, minor) ( \
((major) * 10000) \
-@@ -4066,6 +4067,89 @@ CINDEX_LINKAGE CXSourceRange clang_Cursor_getSpellingNameRange(CXCursor,
+@@ -4066,6 +4067,90 @@ CINDEX_LINKAGE CXSourceRange clang_Cursor_getSpellingNameRange(CXCursor,
unsigned pieceIndex,
unsigned options);
@@ -59,16 +59,17 @@ index 0f4ade266c..d6ad37ffaa 100644
+/**
+ * \brief Get a property value for the given printing policy.
+ */
-+unsigned
++CINDEX_LINKAGE unsigned
+clang_PrintingPolicy_getProperty(CXPrintingPolicy Policy,
+ enum CXPrintingPolicyProperty Property);
+
+/**
+ * \brief Set a property value for the given printing policy.
+ */
-+void clang_PrintingPolicy_setProperty(CXPrintingPolicy Policy,
-+ enum CXPrintingPolicyProperty Property,
-+ unsigned Value);
++CINDEX_LINKAGE void
++clang_PrintingPolicy_setProperty(CXPrintingPolicy Policy,
++ enum CXPrintingPolicyProperty Property,
++ unsigned Value);
+
+/**
+ * \brief Retrieve the default policy for the cursor.