ocaml/driver
Gabriel Scherer 7ad32890fe PR#7037: fix erroneous Location.input_name setting in Pparse.file
When reading a serialized-ast file, Pparse.file sets
Location.input_name to the filename embedded in the AST, and this is
correct. But before this patch it would also set Location.input_name
to the filename if this is a regular file, and this is wrong: this
filename may be a temporary file used for preprocessing (-pp option),
with a randomly-generated name, while Location.input_name is in fact
already correctly set to the user-provided source path.

I needed to fix two lines in ocamldoc/odoc_analyze.ml that
used !Location.input_file but actually required access to the
post-processing file (ocamldoc re-opens source files and rereads them
to detect documentation comments). This is not an invasive change as
the path to the post-processing file is available at this point in the
code (as the [input_file] variable).

This ocamldoc issue was caught thanks to Debian downstream work in bug
triaging ( mlpost breaks if it is not fixed, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802347 ) and package
maintenance (this bug would not have been found if Debian maintainers
had not kept the mlpost documentation generator working even after
non-trivial ocamldoc changes).
2016-10-17 12:50:37 -04:00
..
compdynlink.mlno Add plugins in the compiler 2016-07-18 17:43:05 +02:00
compenv.ml GPR#606: add unboxed types 2016-07-21 13:51:46 +02:00
compenv.mli Add plugins in the compiler 2016-07-18 17:43:05 +02:00
compile.ml Add hooks on some compilation phases 2016-07-12 17:59:58 +02:00
compile.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
compmisc.ml Fix: use OCAMLPARAM include dir even with threads 2016-07-04 09:53:31 +02:00
compmisc.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
compplugin.ml Add plugins in the compiler 2016-07-18 17:43:05 +02:00
compplugin.mli Add plugins in the compiler 2016-07-18 17:43:05 +02:00
errors.ml Update headers for the new license. 2016-02-18 16:59:16 +01:00
errors.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
main.ml Merge pull request #758 from lefessan/2016-08-11-omake 2016-08-11 22:09:51 +02:00
main.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
main_args.ml Fix "unknown option '-no-keep-docs'" (#765) 2016-08-18 11:30:10 +01:00
main_args.mli GPR#606: add unboxed types 2016-07-21 13:51:46 +02:00
ocamlcomp.sh.in Update headers for the new license. 2016-02-18 16:59:16 +01:00
optcompile.ml fix whitespace, long lines, headers 2016-08-01 16:06:59 +02:00
optcompile.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
opterrors.ml Update headers for the new license. 2016-02-18 16:59:16 +01:00
opterrors.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
optmain.ml Merge pull request #758 from lefessan/2016-08-11-omake 2016-08-11 22:09:51 +02:00
optmain.mli Update headers for the new license. 2016-02-18 16:59:16 +01:00
pparse.ml PR#7037: fix erroneous Location.input_name setting in Pparse.file 2016-10-17 12:50:37 -04:00
pparse.mli Add hooks on some compilation phases 2016-07-12 17:59:58 +02:00