Skip to content

Conversation

tsingbx
Copy link
Contributor

@tsingbx tsingbx commented Apr 3, 2025

The llcppg.cfg file adds the symMap field to support users to modify the symbol mapping table in the llcppg.cfg file

@tsingbx tsingbx force-pushed the symMap branch 10 times, most recently from bddf395 to 8628ac6 Compare April 9, 2025 02:54
@codecov
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 21.73913% with 36 lines in your changes missing coverage. Please review.

Project coverage is 77.07%. Comparing base (a9bca6a) to head (89736ae).

Files with missing lines Patch % Lines
cmd/gogensig/convert/package.go 0.00% 2 Missing and 13 partials ⚠️
llcppg/llcppg.go 16.66% 10 Missing ⚠️
cmd/gogensig/dbg/debug.go 50.00% 8 Missing ⚠️
cmd/gogensig/unmarshal/unmarshal.go 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #232      +/-   ##
==========================================
- Coverage   78.85%   77.07%   -1.79%     
==========================================
  Files          31       31              
  Lines        2941     2970      +29     
==========================================
- Hits         2319     2289      -30     
- Misses        604      649      +45     
- Partials       18       32      +14     

☔ 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.

@tsingbx tsingbx force-pushed the symMap branch 4 times, most recently from 878ecc7 to b4c9fb1 Compare April 10, 2025 01:47
go.mod Outdated
github.com/google/go-cmp v0.6.0
github.com/goplus/gogen v1.16.4
github.com/goplus/llgo v0.10.0
github.com/goplus/llgo v0.10.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
github.com/goplus/llgo v0.10.1
github.com/goplus/llgo v0.10.0

can resolve this fail https://github.com/goplus/llcppg/actions/runs/14370680609/job/40294196011?pr=232

Comment on lines 49 to 55
- name: Install LLGO
run: |
git clone --branch v0.10.0 https://github.com/goplus/llgo.git
git clone --branch v0.10.1 https://github.com/goplus/llgo.git
echo $PWD
cd llgo/compiler
go install -v ./cmd/...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this pr only aim to support symMap in llcppg.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

llcppcfg配置项输出的变化和当前更新无关,不在这个Pr中处理会更合适

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsingbx tsingbx force-pushed the symMap branch 5 times, most recently from 1a3f68d to 0c9ab60 Compare April 10, 2025 05:44
@luoliwoshang
Copy link
Member

https://github.com/goplus/llcppg/actions/runs/14373401804/job/40300524017?pr=232
image

这个pr ci fail 提示了当前的实现会让实际的产物缺少某个类型,可以检查一下llcppsymg在sqlite3下是否能输出包含以下内容的出 llcppg.symb.json

{
		"mangle":	"sqlite3_finalize",
		"c++":	"sqlite3_finalize(sqlite3_stmt *)",
		"go":	"(*Stmt).Close"
	}

@tsingbx tsingbx force-pushed the symMap branch 3 times, most recently from eeb9bab to c760784 Compare April 10, 2025 07:43
Comment on lines 1 to 10
package main

import (
"cjson"
"unsafe"

"cjson"

"github.com/goplus/llgo/c"
)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

与当前Pr无关的风格问题,需要去除~

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug的修改单独在一个PR中处理,一个Pr还是尽量做一件事

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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