llvm-project/clang-tools-extra/unittests/clang-tidy
Salman Javed b4f6f1c936 [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
2021-11-10 18:35:57 +13:00
..
AddConstTest.cpp [clang-tidy] implement utility-function to add 'const' to variables 2020-01-03 20:37:47 +01:00
CMakeLists.txt Support standalone build of clang-tidy unittest 2021-02-25 11:51:12 +01:00
ClangTidyDiagnosticConsumerTest.cpp [libtooling][clang-tidy] Fix compiler warnings in testcase [NFC] 2021-04-12 08:26:46 +02:00
ClangTidyOptionsTest.cpp [clang-tidy] Remove OptionError 2021-03-01 17:55:17 +00:00
ClangTidyTest.h [clang] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine) 2021-10-06 11:43:19 +01:00
GlobListTest.cpp GlobList: added a clear test for pattern priority 2019-08-27 08:42:42 +00:00
GoogleModuleTest.cpp
IncludeInserterTest.cpp Make sure Objective-C category support in IncludeSorter handles top-level imports 2020-10-26 12:24:43 -07:00
LLVMModuleTest.cpp [clang-tidy] Fix llvm-header-guard so that it works with Windows paths 2021-11-10 18:35:57 +13:00
NamespaceAliaserTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjCModuleTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OptionsProviderTest.cpp [clang-tidy] Use vfs::FileSystem when getting config 2020-11-07 19:18:02 +00:00
OverlappingReplacementsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ReadabilityModuleTest.cpp
TransformerClangTidyCheckTest.cpp [libtooling][clang-tidy] Fix diagnostics not highlighting fed SourceRanges 2021-04-10 16:43:44 +02:00
UsingInserterTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00