diff options
author | Salman Javed <mail@salmanjaved.org> | 2021-11-10 18:34:41 +1300 |
---|---|---|
committer | Salman Javed <mail@salmanjaved.org> | 2021-11-10 18:35:57 +1300 |
commit | b4f6f1c9369ec4bb1c10852283a8c7e8c39e1a8d (patch) | |
tree | 1c749c29defbae5fe1e720f6c72ab439a2e63e63 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 577c1eecf8c4b078eecb57e1c5b8d86adfc3c08a (diff) | |
download | llvm-b4f6f1c9369ec4bb1c10852283a8c7e8c39e1a8d.zip llvm-b4f6f1c9369ec4bb1c10852283a8c7e8c39e1a8d.tar.gz llvm-b4f6f1c9369ec4bb1c10852283a8c7e8c39e1a8d.tar.bz2 |
[clang-tidy] Fix llvm-header-guard so that it works with Windows paths
Fixes pr40372 (https://bugs.llvm.org/show_bug.cgi?id=40372).
The llvm-header-guard check does not take into account that the path
separator on Windows is `\`, not `/`.
This means that instead of suggesting a header guard in the form of:
LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FOO_H
it incorrectly suggests:
C:\LLVM_PROJECT\CLANG_TOOLS_EXTRA\CLANG_TIDY\FOO_H
Differential Revision: https://reviews.llvm.org/D113450
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions