ffi-clang 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f49d102b63151e047ed3158af59e2ab793ea3a422f13a8a83515305f7c8f5025
4
- data.tar.gz: df66a932286bb412577e176757d79ceea6b82dc2859407cc5abcb720595f57ff
3
+ metadata.gz: 33f36e58a42accf204240213d014bfbd1527ebe23239a74c7472829d502d8fc5
4
+ data.tar.gz: 9b1e75ed934bb3572fd324cf80ea1c1278880abdc487482281e181bb4098932d
5
5
  SHA512:
6
- metadata.gz: 00a0370a903ff0d26d60f3b17dee7a3d94cfaabbf836db4cfb8eba7a56ae966f86a95ab426ef7de1a475b7cb00dd77e2e65ca3553be2d16d05e7e2c13ee4cafa
7
- data.tar.gz: 3efc05ec2a7da83578cff2bdb963f20dc5ff02168f471cf417672aac0715abf570fbc9744fb696a065a4dbd5f63a453fef7af09d6467a1342d392cddb58d2074
6
+ metadata.gz: 07164ccdc62ecb4e8a106fa49f0776c2487e38a2d0aa2df47cf32f0ae2402a63bfb4ac7e27f5ed41d5222cc61a09eca3b64963c7c560b846e5329ef1173d3168
7
+ data.tar.gz: 7e5ae23e82ec66cb97a6d6943fcdf99b124dd6cb902cd12e10216b75310885b2f10a1ec9b62855a83d2acfe523202fa1382fdedebc1c302b25c1315a586591cd
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- �:[_D�=����Ugf �=B��&��ZQT�����wO���m��Ј�2�%�H���MX��J��V:�֓�nR�٘=l{(v�k��.�\"��>�Yx&��GM�{��W�t��������ة1M�d���a�����o�Z�<�d��B��l%Ap >1�P�����CE�;��G�����h�XO�=�!9��E�<��i�ۇC�.)���@M�j,ɕ=�P�><0���Q֝m>�"v��z��$Ӕ�-�M���Ҍj���am�Z�(�P��}W��QL���ɺ>���Q@��ݚ��
2
- s��s}��p%�v&�l�@�]cR�
1
+ �ɒ���oV]���B9J��d�2�{�1sO&K'Χb��q��)L��t�J��~GR�d��
2
+ �v��q�W�]1�}^��a��%��8�=�ý�L"���/zJ�d�蒺�!ֻ��;n)��K���������x�\���,�G��X��s�+,���ݬ�p�q!������B��R
3
+ (ξ��=�T*���bQ�W��8��˚�O��֬���_�l��G� �������6�`p5!ߕJ�?>@Ӽ1{��Y�3���1�0vk_˲n��c�x��"vI�56^��j'K�m�>�H#Bt��[XW�❒��z�P�8�KW/�/�f��]�#(7��Ro�ٙ�(��򨍜ȷ���B#+P~�˲ �-����� �:�O
@@ -84,7 +84,7 @@ module FFI
84
84
 
85
85
  system_includes.each do |path|
86
86
  unless command_line_args.include?(path)
87
- args.push("-I", path)
87
+ args.push("-isystem", path)
88
88
  end
89
89
  end
90
90
 
@@ -10,6 +10,6 @@
10
10
  module FFI
11
11
  # @namespace
12
12
  module Clang
13
- VERSION = "0.15.0"
13
+ VERSION = "0.15.1"
14
14
  end
15
15
  end
data/readme.md CHANGED
@@ -41,6 +41,10 @@ For example, to use a specific LLVM installation:
41
41
 
42
42
  Please see the [project releases](https://socketry.github.io/ffi-clang/releases/index) for all releases.
43
43
 
44
+ ### v0.15.1
45
+
46
+ - Use `-isystem` instead of `-I` for auto-discovered MSVC system include paths so that `in_system_header?` correctly identifies system headers.
47
+
44
48
  ### v0.15.0
45
49
 
46
50
  - [Platform Support](https://socketry.github.io/ffi-clang/releases/index#platform-support)
@@ -109,10 +113,6 @@ Please see the [project releases](https://socketry.github.io/ffi-clang/releases/
109
113
  - Implement libclang `findReferencesInFile` functionality.
110
114
  - Allow `TranslationUnit#file` to return the main file.
111
115
 
112
- ### v0.6.0
113
-
114
- - Add missing translation unit parse flags.
115
-
116
116
  ## Contributing
117
117
 
118
118
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # Releases
2
2
 
3
- ## Unreleased
3
+ ## v0.15.1
4
+
5
+ - Use `-isystem` instead of `-I` for auto-discovered MSVC system include paths so that `in_system_header?` correctly identifies system headers.
6
+
7
+ ## v0.15.0
4
8
 
5
9
  ### Platform Support
6
10
 
7
11
  - Add macOS support using Xcode's built-in clang/libclang.
8
12
  - Add Windows MSVC (mswin) support using Visual Studio's bundled LLVM/Clang, including system include path discovery via `vcvarsall.bat` and `clang-cl`.
9
13
  - Improve Windows MinGW support.
10
- - Work around LLVM bug [#154361](https://github.com/llvm/llvm-project/pull/171465) where `FreeLibrary` on `libclang.dll` crashes during process exit due to dangling Fiber Local Storage callbacks (fixed in LLVM 22.1.0).
14
+ - Work around LLVM bug [\#154361](https://github.com/llvm/llvm-project/pull/171465) where `FreeLibrary` on `libclang.dll` crashes during process exit due to dangling Fiber Local Storage callbacks (fixed in LLVM 22.1.0).
11
15
 
12
16
  ### Breaking Changes
13
17
 
@@ -61,45 +65,45 @@
61
65
 
62
66
  ## v0.13.0
63
67
 
64
- - Add support for `clang_Type_getNamedType`. (#90)
65
- - Try clang v18 + add Ruby v3.4 to test matrix. (#91)
68
+ - Add support for `clang_Type_getNamedType`. (\#90)
69
+ - Try clang v18 + add Ruby v3.4 to test matrix. (\#91)
66
70
 
67
71
  ## v0.12.0
68
72
 
69
- - Prefer `LIBCLANG` and `LLVM_CONFIG` overrides over Xcode. (#88)
73
+ - Prefer `LIBCLANG` and `LLVM_CONFIG` overrides over Xcode. (\#88)
70
74
 
71
75
  ## v0.11.0
72
76
 
73
- - Restore `visit_children` method. Fixes #82. (#84)
74
- - Expose Clang's exception specification API. (#87)
75
- - Support iterating over `Type::Function` args and expose `Lib.get_non_reference_type`. (#85)
76
- - Fix qualified name. (#83)
77
- - Update clang version. (#86)
77
+ - Restore `visit_children` method. Fixes \#82. (\#84)
78
+ - Expose Clang's exception specification API. (\#87)
79
+ - Support iterating over `Type::Function` args and expose `Lib.get_non_reference_type`. (\#85)
80
+ - Fix qualified name. (\#83)
81
+ - Update clang version. (\#86)
78
82
 
79
83
  ## v0.10.0
80
84
 
81
- - Expose libclang's anonymous methods. (#79)
82
- - Use Enumerable. (#80)
83
- - Split `FFI::Clang::Type` into a number of more cohesive subclasses inheriting from `FFI::Clang::Types::Type`. (#81)
85
+ - Expose libclang's anonymous methods. (\#79)
86
+ - Use Enumerable. (\#80)
87
+ - Split `FFI::Clang::Type` into a number of more cohesive subclasses inheriting from `FFI::Clang::Types::Type`. (\#81)
84
88
 
85
89
  ## v0.9.0
86
90
 
87
- - Remove duplicate mapping of `clang_getEnumDeclIntegerType`. (#67)
88
- - Update bitmask options based on enums to always be an array of symbols. (#69)
89
- - Add support for `parse_translation_unit2` API. (#70)
90
- - Cursor improvements, Type improvements, Printing support. (#72)
91
- - Fix finalizer exception in `FFI::Clang::CodeCompletion::Results`. (#74)
92
- - Fix Clang 16 compatibility. (#76)
93
- - Cursor location methods. (#78)
91
+ - Remove duplicate mapping of `clang_getEnumDeclIntegerType`. (\#67)
92
+ - Update bitmask options based on enums to always be an array of symbols. (\#69)
93
+ - Add support for `parse_translation_unit2` API. (\#70)
94
+ - Cursor improvements, Type improvements, Printing support. (\#72)
95
+ - Fix finalizer exception in `FFI::Clang::CodeCompletion::Results`. (\#74)
96
+ - Fix Clang 16 compatibility. (\#76)
97
+ - Cursor location methods. (\#78)
94
98
 
95
99
  ## v0.8.0
96
100
 
97
- - Modernize gem. (#58)
98
- - Test on clang 5.0+. (#59)
99
- - Fix `CXCursor_TranslationUnit` enum value to 350. (#61)
100
- - Add `Cursor#hash` and `Cursor#eql?`. (#62)
101
- - Set `cursor_translation_unit` enum value based on the Clang version. (#64)
102
- - Add various C++ introspection methods. (#66)
101
+ - Modernize gem. (\#58)
102
+ - Test on clang 5.0+. (\#59)
103
+ - Fix `CXCursor_TranslationUnit` enum value to 350. (\#61)
104
+ - Add `Cursor#hash` and `Cursor#eql?`. (\#62)
105
+ - Set `cursor_translation_unit` enum value based on the Clang version. (\#64)
106
+ - Add various C++ introspection methods. (\#66)
103
107
 
104
108
  ## v0.7.0
105
109
 
@@ -122,42 +126,42 @@
122
126
  - Modernize code base, Clang v3.4+ only.
123
127
  - Get text from `SourceRange`.
124
128
  - Integrate `find_*` into `Cursor`.
125
- - Test case for method calls inside classes. (#36)
129
+ - Test case for method calls inside classes. (\#36)
126
130
 
127
131
  ## v0.3.0
128
132
 
129
- - Find and use `llvm-config`. (#38)
133
+ - Find and use `llvm-config`. (\#38)
130
134
  - Recognize Xcode 7.
131
135
  - Add functions needed by RoboVM's bro-gen script.
132
136
 
133
137
  ## v0.2.1
134
138
 
135
- - Add inclusions support. (#32)
139
+ - Add inclusions support. (\#32)
136
140
  - Update unit tests for RSpec 3.
137
- - Add `CompilationDatabase`. (#27)
138
- - Only use `.dylib` on Darwin. (#29)
141
+ - Add `CompilationDatabase`. (\#27)
142
+ - Only use `.dylib` on Darwin. (\#29)
139
143
 
140
144
  ## v0.2.0
141
145
 
142
146
  - Add clang version string APIs.
143
- - Add cursor functions (except Objective-C). (#9)
144
- - Add type kind and cursor kind enums. (#8)
145
- - Add `TranslationUnit` reference to `Cursor` and `Type`. (#11)
146
- - Multi-version libclang testing via Travis. (#10)
147
+ - Add cursor functions (except Objective-C). (\#9)
148
+ - Add type kind and cursor kind enums. (\#8)
149
+ - Add `TranslationUnit` reference to `Cursor` and `Type`. (\#11)
150
+ - Multi-version libclang testing via Travis. (\#10)
147
151
 
148
152
  ## v0.1.3
149
153
 
150
- - Add `CXType` support. (#5)
154
+ - Add `CXType` support. (\#5)
151
155
  - Correct camelCase `displayName` to `display_name`.
152
156
 
153
157
  ## v0.1.2
154
158
 
155
- - Initial support for source comments. (#4)
159
+ - Initial support for source comments. (\#4)
156
160
  - Use different classes for comment types.
157
161
 
158
162
  ## v0.1.1
159
163
 
160
- - Support unsaved files. (#3)
164
+ - Support unsaved files. (\#3)
161
165
  - Add `Cursor` visitor function taking a block.
162
166
  - Add null cursor and `clang_is*` functions.
163
167
  - Add `SourceLocation` from diagnostic.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-clang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- Lr~a�g���gUT���$�f�\9Y�t� ��B��@v�R1�,�M�|+ji�#���4�yF�t������J���y��&�3�i�
2
1
  �7���B�;Z!m�N�Q�]Ǝ� R�[
3
- ���$q{_]9�޶��ӝ�B���js��-�Gp�"\V���!���]�$B<]3R����V�L�7xC���~?��:��]K�/� T� J 3m���`'U,Wjv^���y�~����i���@@*Z=��'��W��,;�P���e)�Gl1B���U��4�q8-"��� iDkZr�EQaݦץHL1O�]&Ǡ��H���m'���"I89���싸���r{#���}�9�\^�ER���n���Ov����[�U!׮L@>���N`�
2
+ n��`X-Gl�������H�D
3
+ J�Q6>v�c݂jY��C�DJk�j";�F����r��7B�dў9�*HF}
4
+ �D�0V`�����@y���Y�27��V#-1�ߢ`Q.h{�*�����d�F%Ѥ�b�O5�r6s�n]?�V7����#�_/���a��p��'%$N{��.�F���IC�e�f�h��-Vi� </��&�s��Ȑ�y"���|U�\sL�!+�WR�0�B6N:C���'G�g�U=�7wU���e,D�
5
+ �(s�V��w��