@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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to