llvm-project/clang-tools-extra/clang-tidy/misc
MuAlphaOmegaEpsilon ccce1a03c9 Don't trigger unused-parameter warnings on naked functions
This commit checks if a function is marked with the naked attribute
and, if it is, will silence the emission of any unused-parameter
warning.

Inside a naked function only the usage of basic ASM instructions is
expected. In this context the parameters can actually be used by
fetching them according to the underlying ABI. Since parameters might
be used through ASM instructions, the linter and the compiler will have
a hard time understanding if one of those is unused or not, therefore
no unused-parameter warning should ever be triggered whenever a
function is marked naked.
2022-01-27 11:40:08 -05:00
..
CMakeLists.txt Misleading bidirectional detection 2022-01-12 11:38:36 +01:00
DefinitionsInHeadersCheck.cpp Fix bugprone argument comments. 2022-01-09 12:21:02 -08:00
DefinitionsInHeadersCheck.h [clang-tidy] Use ; as separator for HeaderFileExtensions 2020-03-09 11:32:44 -06:00
MiscTidyModule.cpp Misleading bidirectional detection 2022-01-12 11:38:36 +01:00
MisleadingBidirectional.cpp Misleading bidirectional detection 2022-01-12 11:38:36 +01:00
MisleadingBidirectional.h Misleading bidirectional detection 2022-01-12 11:38:36 +01:00
MisleadingIdentifier.cpp Misleading unicode identifier detection pass 2021-11-10 10:21:27 +01:00
MisleadingIdentifier.h Misleading unicode identifier detection pass 2021-11-10 10:21:27 +01:00
MisplacedConstCheck.cpp Extend misc-misplaced-const to detect using declarations as well as typedef 2020-01-22 15:26:11 -05:00
MisplacedConstCheck.h
NewDeleteOverloadsCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NewDeleteOverloadsCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
NoRecursionCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
NoRecursionCheck.h [clang-tidy] misc-no-recursion: a new check 2020-02-13 23:37:53 +03:00
NonCopyableObjects.cpp
NonCopyableObjects.h
NonPrivateMemberVariablesInClassesCheck.cpp [clang-tidy] Implement storeOptions for checks missing it. 2020-06-21 19:01:11 +01:00
NonPrivateMemberVariablesInClassesCheck.h [clang-tidy] Implement storeOptions for checks missing it. 2020-06-21 19:01:11 +01:00
RedundantExpressionCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
RedundantExpressionCheck.h
StaticAssertCheck.cpp [clang-tools-extra] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
StaticAssertCheck.h Revert "[clang-tidy] Simplify static assert check" 2021-05-30 16:44:31 +03:00
ThrowByValueCatchByReferenceCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ThrowByValueCatchByReferenceCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
UnconventionalAssignOperatorCheck.cpp [clang-tidy] Fix false positives involving type aliases in `misc-unconventional-assign-operator` check 2022-01-17 21:16:17 +01:00
UnconventionalAssignOperatorCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
UniqueptrResetReleaseCheck.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
UniqueptrResetReleaseCheck.h [clang-tidy] Add <utility> include to misc-uniqueptr-reset-release 2021-04-12 23:32:15 +01:00
UnusedAliasDeclsCheck.cpp [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
UnusedAliasDeclsCheck.h [clang-tidy] Change checks to use new isLanguageVersionSupported restriction 2020-03-03 16:43:45 +00:00
UnusedParametersCheck.cpp Don't trigger unused-parameter warnings on naked functions 2022-01-27 11:40:08 -05:00
UnusedParametersCheck.h
UnusedUsingDeclsCheck.cpp Reland "[AST] Add UsingType: a sugar type for types found via UsingDecl" 2021-12-20 18:03:15 +01:00
UnusedUsingDeclsCheck.h