Closed mfornet closed 4 years ago
Thanks for the bug report! I could reproduce the issue when an older version of clang library (7.0) is used. With the recent version it works as expected: Value
constructor is removed because it's never used; however the function foo
is kept. If you build from source, can you try updating the llvm submodule (git submodule update --init
) and then passing -DCAIDE_USE_SYSTEM_CLANG=OFF
to cmake? If this doesn't help, what are the exact clang options that you provide?
Note function
foo
in the following code:Input:
The expected output is the same code, however, the function foo is removed. Here is the result code:
It works ok, if in the comparer, instead of using
auto
I use[&](Value &a, Value &b) { ... }