standardese / standardese

A (work-in-progress) nextgen Doxygen for C++
Other
923 stars 45 forks source link

infinite loop on unrelated file #244

Open michaelcadilhac opened 6 months ago

michaelcadilhac commented 6 months ago

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 commented 6 months ago

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