Skip to content

Conversation

zhaojunmeng
Copy link
Contributor

        if (i < Headers.size() - 1)
            // Before modified, the ParseResult is just deleted without checking whether it has any error.
            delete parser.Parse({ Headers[i] });
        else
            res = parser.Parse({ Headers[i] });

Change to: if any file has non success ParseResult, just stop parsing and return the result.

@zhaojunmeng
Copy link
Contributor Author

Error parsing 'Builtins.h, Classes.h, Classes2.h, Delegates.h, Enums.h, Overloads.h'
/home/runner/work/CppSharp/CppSharp/tests/Builtins.h(3,10): fatal: 'cstddef' file not found
CppSharp has encountered an error while parsing code.

It seems that the error that already existed in the previous CI pipeline has been exposed by this merge quest.😭

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.

1 participant