diff options
author | Adrian Vogelsgesang <avogelsgesang@tableau.com> | 2021-11-11 18:19:54 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2021-11-11 18:28:43 +0000 |
commit | 8188484daa4195a2c8b5253765036fa2c6da7263 (patch) | |
tree | 8cb139252415a7991f13d04733b08d3c7eaea853 /clang/lib/CodeGen/CodeGenModule.h | |
parent | bc84b2857f5bd1550f0be4b0961d6a3ebecfa15d (diff) | |
download | llvm-8188484daa4195a2c8b5253765036fa2c6da7263.zip llvm-8188484daa4195a2c8b5253765036fa2c6da7263.tar.gz llvm-8188484daa4195a2c8b5253765036fa2c6da7263.tar.bz2 |
[clang-apply-replacements] Correctly handle relative paths
The fixes from the YAML file can refer to relative paths.
Those relative paths are meant to be resolved relative to the
corresponding `build directory`.
However, `clang-apply-replacements` currently interprets all
paths relative to its own working directory. This causes issues,
e.g., when `clang-apply-replacements` is run from outside of
the original build directory.
This commit adjusts `clang-apply-replacements` to take the build
directory into account when resolving relative file paths.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D112647
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions