[PATCH] Files in a compilation database using relative paths are not being transformed

Ariel Bernal ariel.j.bernal at intel.com
Mon Oct 7 08:38:38 PDT 2013


  @revane, Sources are made absolute in ClangModernizer.cpp but Filename here is coming from the command line in the compilation database and that path is relative to the directory so in order to make this change only once we should parse the compilation database command and fix the path. I guess this could be the best solution but could involve some re-factoring since ClangTool assumes that the files are provided relative to the directory in the compilation database and changes directories so everything would be relative to the current directory.
  CurrentSource is just used for YAML files to be created in the correct place since D1800 is fixing the replacements for relative paths.

http://llvm-reviews.chandlerc.com/D1837



More information about the cfe-commits mailing list