thakis added a comment. >> Those aren't diagnostics, so that's not surprising. > > What would suggest in that case? Add a new `-fpreprocessor-absolute-paths` > option? Or change the name of `-fdiagnostics-absolute-paths` for another name > that applies to both diagnostics and the preprocessor output?
clang uses the absolute-ness you use on the input. If you pass absolute paths to clang and to -I, then --show-includes etc will print absolute paths: $ cat test.cc #include "foo/test.h" $ out/gn/bin/clang-cl /showIncludes /c test.cc Note: including file: ./foo/test.h $ out/gn/bin/clang-cl /showIncludes /c test.cc -I$PWD Note: including file: /Users/thakis/src/llvm-project/foo/test.h Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D63648/new/ https://reviews.llvm.org/D63648 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits