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

infinite loop on unrelated file #244

Open
michaelcadilhac opened this issue Dec 19, 2023 · 1 comment
Open

infinite loop on unrelated file #244

michaelcadilhac opened this issue Dec 19, 2023 · 1 comment

Comments

@michaelcadilhac
Copy link

The following innocuous meson file causes an infinite loop for standardese. I have no clue how to use standardese yet, it's my first attempt, so I just ran it on my src/ folder, which contained that file.

$ standardese -v 1 ./meson.build         
parsing C++ files...
[libclang] [error] /tmp/meson.build:1: a type specifier is required for all declarations
[libclang] [error] /tmp/meson.build:1: expected variable name or 'this' in lambda capture list
[libclang] [error] /tmp/meson.build:6: expected ';' after top level declarator
<stuck>

meson.build:

ab_sources = ['acacia-bonsai.cc']

ab_exe = executable ('acacia-bonsai', ab_sources,
                     include_directories : inc,
                     link_with : [common_lib],
                     dependencies : [boost_dep, spot_dep, bddx_dep, gnulib_dep, stdsimd_dep])
@saraedum
Copy link
Member

That's probably a bug in the parser. Did you expect something meaningful to happen or just for it to err without looping?

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