We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a74b27 commit ffc662aCopy full SHA for ffc662a
scripts/extract_source.rb
@@ -279,8 +279,8 @@ def analyze_file(file)
279
end_offset += 1 if cursor.kind == :cursor_variable # The ";" isn't counted correctly by clang
280
281
if cursor.kind == :cursor_variable && (cursor.linkage == :external || cursor.linkage == :internal) &&
282
- !cursor.type.const_qualified? && !cursor.type.array_element_type.const_qualified? &&
283
- cursor.type.pointee.kind != :type_function_proto
+ !cursor.type.const_qualified? && !(cursor.type.is_a?(FFI::Clang::Types::Array) && cursor.type.element_type.const_qualified?) &&
+ !(cursor.type.is_a?(FFI::Clang::Types::Pointer) && cursor.type.pointee.kind == :type_function_proto)
284
analysis.external_variables << cursor.spelling
285
end
286
0 commit comments