A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytedeco/javacpp/issues/407 below:

Preset generator cannot handle "const auto FOO = 42u;" · Issue #407 · bytedeco/javacpp · GitHub

If we have a source file with something like:

namespace bar {
const auto FOO = 42u;
}

We get:

Caused by: org.bytedeco.javacpp.tools.ParserException: /path/to/header.hpp:2:Could not parse declaration at '='

At the moment it seems the parser chokes so much that it doesn't seem possible to even skip() these declarations, so you have to do something like:

infoMap.put(new Info("basename.hpp").linePatterns("\\s*const auto.*", ".*;\\s*").skip())

I think ideally these would be parsed, and if it was an unambiguous literal, type inference performed, otherwise cppTypes required before conversion.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4