llvm-project/clang-tools-extra/clang-tidy/misc
Carlos Galvez 5b37cddff8 [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options
Re-introduce the patch that was reverted previously.
In the first attempt, the checks would not be able to
read from the global option, since getLocalOrGlobal
only works with string types. Additional logic is needed
in order to support both use cases in the transition
period. All that logic will be removed when the local
options are fully removed.

We have a number of checks designed to analyze problems
in header files only, for example:

bugprone-suspicious-include
google-build-namespaces
llvm-header-guard
misc-definitions-in-header
...

All these checks duplicate the same logic and options
to determine whether a location is placed in the main
source file or in the header. More checks are coming
up with similar requirements.

Thus, to remove duplication, let's move this option
to the top-level configuration of clang-tidy (since
it's something all checks should share).

Add a deprecation notice for all checks that use the
local option, prompting to update to the global option.

Differential Revision: https://reviews.llvm.org/D142655
2023-02-19 13:44:11 +00:00
..
ConfusableTable
CMakeLists.txt [CMake] Allow setting the location of host tools with LLVM_NATIVE_TOOL_DIR 2023-01-18 23:56:15 +02:00
ConfusableIdentifierCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
ConfusableIdentifierCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
ConstCorrectnessCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
ConstCorrectnessCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
DefinitionsInHeadersCheck.cpp [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00
DefinitionsInHeadersCheck.h [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00
MiscTidyModule.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
MisleadingBidirectional.cpp [clang-tidy][NFC] Remove unused User argument in misc-misleading-bidirectional check 2023-01-08 15:18:13 +00:00
MisleadingBidirectional.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
MisleadingIdentifier.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
MisleadingIdentifier.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
MisplacedConstCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
MisplacedConstCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
NewDeleteOverloadsCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
NewDeleteOverloadsCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
NonCopyableObjects.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
NonCopyableObjects.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
NonPrivateMemberVariablesInClassesCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
NonPrivateMemberVariablesInClassesCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
NoRecursionCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
NoRecursionCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
RedundantExpressionCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
RedundantExpressionCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
StaticAssertCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
StaticAssertCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
ThrowByValueCatchByReferenceCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
ThrowByValueCatchByReferenceCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
UnconventionalAssignOperatorCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
UnconventionalAssignOperatorCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
UniqueptrResetReleaseCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
UniqueptrResetReleaseCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
UnusedAliasDeclsCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
UnusedAliasDeclsCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
UnusedParametersCheck.cpp [clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder 2023-01-14 18:51:39 +00:00
UnusedParametersCheck.h [clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers 2023-01-23 21:23:16 +00:00
UnusedUsingDeclsCheck.cpp [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00
UnusedUsingDeclsCheck.h [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00
UseAnonymousNamespaceCheck.cpp [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00
UseAnonymousNamespaceCheck.h [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options 2023-02-19 13:44:11 +00:00