arik-so / arik-so/ldk-parser

Improve function detection regex to avoid the necessity of multi-step checks

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Bellwether example:

`const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];`

Old example that still also needs to work:

`uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);`

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by locating the function-detection regex in the Swift parser and compare its behavior against both declarations in the issue; done means one detection pass recognizes the pointer-returning declaration while preserving detection of the uint16_t example.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, swift
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.