[PATCH] D67501: [clang-tidy] Fix relative path in header-filter.

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 06:51:25 PDT 2019


gribozavr added a subscriber: ilya-biryukov.
gribozavr added a comment.

I added a test in r372607 for your reference. It tests both `foo/..` and symlink behavior.

> Maybe only collapsing `foo/..` would be viable?

@ilya-biryukov told me that even that is not viable, in case `foo` is a symlink to a directory.

The only workable suggestion that we could come up with was adding a separate command-line option, `-normalized-header-filter`, that would normalize paths before matching the regex. It can be used by people whose project layout does not have complex symlink mazes.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67501/new/

https://reviews.llvm.org/D67501





More information about the cfe-commits mailing list