Skip to content

feat:distinguish forwarddecl & empty decl#527

Merged
MeteorsLiu merged 8 commits into
xgo-dev:mainfrom
luoliwoshang:parser/forward
Aug 6, 2025
Merged

feat:distinguish forwarddecl & empty decl#527
MeteorsLiu merged 8 commits into
xgo-dev:mainfrom
luoliwoshang:parser/forward

Conversation

@luoliwoshang
Copy link
Copy Markdown
Contributor

@luoliwoshang luoliwoshang commented Aug 5, 2025

  • forward decl with nil Field field
	forwardDecl := &ast.RecordType{
		Tag:    ast.Struct,
		Fields: nil,
	}
  • empty decl
	emptyDecl := &ast.RecordType{
		Tag:    ast.Struct,
		Fields: &ast.FieldList{},
	}

define addition libclang wrap function will cause fail luoliwoshang#7
so we need copy the goplus/lib/clang to current project , to temporary resolve this situation,and in the futrue , libclang's llgo binding will move to llpkg.
move at #529

@luoliwoshang luoliwoshang force-pushed the parser/forward branch 5 times, most recently from defb1ae to 0a85dea Compare August 5, 2025 03:36
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.20%. Comparing base (7abb9e8) to head (1f3d3a5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #527   +/-   ##
=======================================
  Coverage   84.20%   84.20%           
=======================================
  Files          27       27           
  Lines        2747     2747           
=======================================
  Hits         2313     2313           
  Misses        391      391           
  Partials       43       43           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luoliwoshang luoliwoshang changed the title parser:verify distinguish forwarddecl & empty decl feat:distinguish forwarddecl & empty decl Aug 6, 2025
@luoliwoshang luoliwoshang requested a review from MeteorsLiu August 6, 2025 08:59
@MeteorsLiu MeteorsLiu merged commit 30c4497 into xgo-dev:main Aug 6, 2025
12 checks passed
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