-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] gogensig #813
Open
luoliwoshang
wants to merge
122
commits into
goplus:main
Choose a base branch
from
luoliwoshang:gogensig/update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[wip] gogensig #813
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luoliwoshang
force-pushed
the
gogensig/update
branch
from
September 30, 2024 01:03
eb0a84a
to
70d321d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #813 +/- ##
==========================================
+ Coverage 97.62% 97.91% +0.29%
==========================================
Files 20 31 +11
Lines 5971 7328 +1357
==========================================
+ Hits 5829 7175 +1346
- Misses 120 128 +8
- Partials 22 25 +3 ☔ View full report in Codecov by Sentry. |
luoliwoshang
force-pushed
the
gogensig/update
branch
2 times, most recently
from
October 16, 2024 10:47
f754570
to
980d1cc
Compare
luoliwoshang
force-pushed
the
gogensig/update
branch
2 times, most recently
from
October 24, 2024 01:51
a3a8371
to
6bb3d81
Compare
luoliwoshang
force-pushed
the
gogensig/update
branch
from
October 28, 2024 08:16
6bd8c23
to
e7b8263
Compare
luoliwoshang
force-pushed
the
gogensig/update
branch
4 times, most recently
from
November 7, 2024 02:38
7ed439f
to
09b765e
Compare
gogensig:unmarshal file set gogensig:test unmarshal error chore:remove folder add visitor
This reverts commit f76bd8c.
add unmarshaller and visitor
gogensig:basic bulitin type convert
fix conflit
gogensig:test NewPackage,bulitinType convert
gogensig/chore:rename & comment
remove DocPath method from DocVisitor
add SetupSymbolTable
gogensig:array in struct field
fix symbol name error
luoliwoshang
force-pushed
the
gogensig/update
branch
from
November 9, 2024 02:41
f81bf7e
to
189ea7b
Compare
gogensig:read llcppg.pub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
child pr list in this pr list
LLGoPackage
link constsys/dirent.h
->sys_dirent.go
,sys/_pthread/_pthread_types.h
->sys__pthread__pthread_types.go
)._types.h
->X_types.go
文件依赖处理
llcppg.cfg 增加一个新的配置项
deps
用于指明当前转换工程依赖了哪些已经转换完毕的llgo c package读取这个对于一个llcppg的处理完毕的工程,配置项中对应的标准路径,也指明当前转换完成的包是来自于哪几个标准搜索路径,比如我需要引用一个stdint这个包的时候,之前这个stdint是转换来自对应的头文件,那么在当前引用了这个stdint包的时候,根据其include就可以直接跳过那些头文件
对于转换完成的包新增一个配置项
llcppg.pub
用于存放当前包中完成映射的符号名,左边为C中的符号名,右边为转换完毕后Go中的名称,对于引用该包的转换工程一旦访问到这些名称,就可以直接从该包中获取对应的类型
在文件的依赖处理中,则由头文件标准引用路径作为key,具体生成逻辑参考 #853
llcppg.pub
generate