Skip to content
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

Error report: when two case point to same code with first case have comment #53

Open
ArvinChengcheng opened this issue Nov 20, 2024 · 2 comments

Comments

@ArvinChengcheng
Copy link

ArvinChengcheng commented Nov 20, 2024

"https://github.com/Enter-tainer/cxx2flow/releases/download/v0.6.2/cxx2flow-windows-amd64.exe"

"musually, every dummy node only has one outgoing edge, but this node has zero or more than one outgoing edges
this might be a bug, please report it to the author"
=====function====
void apmc_EvalInclinationInfo(void)
{
switch(aaa)
{
case 1:/s/
case 2:
aaa=2;
break;
case 3:
case 4:
aaa=4;
break;
default:
break;
}
}
===when two case point to same code with first case have comment ====
case 1://* s */ ----will report error
case 1: ----will not report error

cxx2flow.exe D:\SDD_autogenerate\temp\applMovCheck.c apmc_EvalInclinationInfo

cxx2flow.exe D:\SDD_autogenerate\temp\applMovCheck.c apmc_EvalInclinationInfo | dot.exe -Tpng -o applMovCheck.c_apmc_EvalInclinationInfo.png

image

@ArvinChengcheng
Copy link
Author

ArvinChengcheng commented Nov 20, 2024

case 1://s/ ----有注释的时候会报错,包括// 和 /**/
case 1: ----没注释的时候,不会报错

@Enter-tainer
Copy link
Owner

i think it's a bug. you can delete the comments around case before it gets fixed

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

No branches or pull requests

2 participants