summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2019-09-20 13:19:32 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2019-09-20 13:19:32 +0000
commit4a13c828f6d78e49eabffc7b57f805ca46a2a827 (patch)
tree33ed6a9e5cbc2ba84539e6af0f2a338648f2dc85 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent81aa62addf7bd8d1cf57adc86dabcbc1c91f7a2c (diff)
downloadbcm5719-llvm-4a13c828f6d78e49eabffc7b57f805ca46a2a827.tar.gz
bcm5719-llvm-4a13c828f6d78e49eabffc7b57f805ca46a2a827.zip
[clang-tidy] Fix relative path in header-filter.
Summary: Clang-tidy supports output diagnostics from header files if user specifies --header-filter. But it can't handle relative path well. For example, the folder structure of a project is: ``` // a.h is in /src/a/a.h // b.h is in /src/b/b.h ... // c.cpp is in /src/c.cpp ``` Now, we set --header-filter as --header-filter=/a/. That means we only want to check header files under /src/a/ path, and ignore header files uder /src/b/ path, but in current implementation, clang-tidy will check /src/b/b.h also, because the name of b.h used in clang-tidy is /src/a/../b/b.h. This change tries to fix this issue. Reviewers: alexfh, hokein, aaron.ballman, gribozavr Reviewed By: gribozavr Subscribers: MyDeveloperDay, xazax.hun, cfe-commits Tags: #clang, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D67501 Patch by Yubo Xie. llvm-svn: 372388
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud