summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
diff options
context:
space:
mode:
authorMuAlphaOmegaEpsilon <tommasobonvicini@gmail.com>2022-01-27 11:39:05 -0500
committerAaron Ballman <aaron@aaronballman.com>2022-01-27 11:40:08 -0500
commitccce1a03c9ce9c3917b310097c89e39bb68527e2 (patch)
tree3370b155fde8fcf6ba19e94e02f2b1085eebf9f0 /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
parent8f972cb0fd0cf2513a1134a5f37b3c059376ca47 (diff)
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.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions