Skip to content

Set up fmagent fork: pin v1.3.0 + #1211 fix (upstream PR #1223)#1

Closed
Dshuishui wants to merge 3 commits into
mainfrom
fm-patch/1211
Closed

Set up fmagent fork: pin v1.3.0 + #1211 fix (upstream PR #1223)#1
Dshuishui wants to merge 3 commits into
mainfrom
fm-patch/1211

Conversation

@Dshuishui

Copy link
Copy Markdown
Collaborator

Initializes this maintenance fork.

What

Base / policy

Upstream colbymchenry#1211 is still open and unreleased (latest v1.4.1 still has the bug), so
this fork is required as a stopgap for FM-Agent.

fengshao1227 and others added 3 commits July 14, 2026 13:51
…ef return types (colbymchenry#1211)

tree-sitter-c can't reconcile an unknown macro token before a typedef'd
return type — `SEC_ATTR UINT32 LostName(VOID)` misparsed the function name
as `(VOID)` instead of `LostName`. This affected all C projects using
section/placement macros (OpenHarmony LiteOS-M, embedded firmware, etc.).

Two additions to preParseCSource:

1. blankCLeadingMacros — blanks arbitrary ALL_CAPS tokens sitting before a
   known C return type at line start (handles project-specific macros like
   SEC_ATTR, LITE_OS_SEC_TEXT_INIT that no curated list can cover).

2. Wire in blankCppInlineMacros — catches known inline-specifier macros
   already curated for C++ (SQLITE_API, WINAPI, G_INLINE_FUNC, etc.) that
   are equally common in C codebases.

Closes colbymchenry#1211
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Dshuishui Dshuishui closed this Jul 14, 2026
@Dshuishui Dshuishui deleted the fm-patch/1211 branch July 14, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants