aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorkadir çetinkaya <kadircet@google.com>2024-08-13 12:51:52 +0200
committerGitHub <noreply@github.com>2024-08-13 12:51:52 +0200
commit64d9713637ab98e2b65c9c4317a50ddba0ba0dbc (patch)
tree47d9559f8758b99148574bd559fd8f0df7ade0c5 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent8fc3a7974701f12f46f3f7c1f967001b0cb22847 (diff)
downloadllvm-64d9713637ab98e2b65c9c4317a50ddba0ba0dbc.zip
llvm-64d9713637ab98e2b65c9c4317a50ddba0ba0dbc.tar.gz
llvm-64d9713637ab98e2b65c9c4317a50ddba0ba0dbc.tar.bz2
[include-cleaner] Unify symlink handling (#102615)
We were using tryGetRealPathName in certain places, which resolves symlinks (sometimes). This was resulting in discrepancies in behavior, depending on how a file was first reached. This path migrates all usages of tryGetRealPathName to regular getName instead. This implies one backward incompatible change for header-filtering. Our ignore-header option used to filter against suffixes of absolute paths, whereas now filter can receive working-directory relative paths in some cases, possibly braking existing filters. Chances of really braking users is pretty low: - We'll still filter against absolute paths when header is outside the working directory (e.g. /usr/bin/include/some/linux/header.h.) - Most projects run builds in a working directory that's nested inside the repository, hence relative paths still contain all the segments relative to repository root and anything else is unlikely to be meaningful. e.g. if a header is in `$HOME/work/llvm-project/clang-tools-extra/header.h` with builds being run in `$home/work/llvm-project/build`, we'll still filter against `../clang-tools-extra/header.h` which has all the useful segments as a suffix. - This is also a change in how we handle symlinks, but this is aligned with what we do in rest of our tools (clangd, tidy checks etc.). We tend to not resolve any symlinks for the file.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions