forked from OSchip/llvm-project
ccce1a03c9
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DefinitionsInHeadersCheck.cpp | ||
DefinitionsInHeadersCheck.h | ||
MiscTidyModule.cpp | ||
MisleadingBidirectional.cpp | ||
MisleadingBidirectional.h | ||
MisleadingIdentifier.cpp | ||
MisleadingIdentifier.h | ||
MisplacedConstCheck.cpp | ||
MisplacedConstCheck.h | ||
NewDeleteOverloadsCheck.cpp | ||
NewDeleteOverloadsCheck.h | ||
NoRecursionCheck.cpp | ||
NoRecursionCheck.h | ||
NonCopyableObjects.cpp | ||
NonCopyableObjects.h | ||
NonPrivateMemberVariablesInClassesCheck.cpp | ||
NonPrivateMemberVariablesInClassesCheck.h | ||
RedundantExpressionCheck.cpp | ||
RedundantExpressionCheck.h | ||
StaticAssertCheck.cpp | ||
StaticAssertCheck.h | ||
ThrowByValueCatchByReferenceCheck.cpp | ||
ThrowByValueCatchByReferenceCheck.h | ||
UnconventionalAssignOperatorCheck.cpp | ||
UnconventionalAssignOperatorCheck.h | ||
UniqueptrResetReleaseCheck.cpp | ||
UniqueptrResetReleaseCheck.h | ||
UnusedAliasDeclsCheck.cpp | ||
UnusedAliasDeclsCheck.h | ||
UnusedParametersCheck.cpp | ||
UnusedParametersCheck.h | ||
UnusedUsingDeclsCheck.cpp | ||
UnusedUsingDeclsCheck.h |