By default the cpp parse failed trying to open an non existing file
$./pfff -parse_cpp .
Using /home/pad/pfff//data/cpp_stdlib/macros.h macro file
exn Unix_error: No such file or directory stat /home/pad/pfff//data/cpp_stdlib/macros.h
Fatal error: exception Unix.Unix_error(20, "stat", "/home/pad/pfff//data/cpp_stdlib/macros.h")
The issue can be fixed exporting PFFF_HOME to source directory or $(DESTDIR)$(SHAREDIR). For example :
export PFFF_HOME=~/src/pfff
This environment variable should be documented
In addition lang_cpp/parsing/flag_parsing_cpp.ml should use as a default value the installation path instead of an hard coded value.
By default the cpp parse failed trying to open an non existing file
The issue can be fixed exporting PFFF_HOME to source directory or $(DESTDIR)$(SHAREDIR). For example :
This environment variable should be documented In addition
lang_cpp/parsing/flag_parsing_cpp.ml
should use as a default value the installation path instead of an hard coded value.