mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[Lint] Update clang-format to 19.1.4 (#153889)
All changes other than the one to `tools/linter/adapters/s3_init_config.json` are generated by newer clang-format Pull Request resolved: https://github.com/pytorch/pytorch/pull/153889 Approved by: https://github.com/cyyever, https://github.com/atalman
This commit is contained in:
committed by
PyTorch MergeBot
parent
d869ea11e0
commit
c4d1ff02f8
@ -59,7 +59,7 @@ void hookupHandler() {
|
||||
if (hookedUpCount++) {
|
||||
return;
|
||||
}
|
||||
struct sigaction sa {};
|
||||
struct sigaction sa{};
|
||||
// Setup the handler
|
||||
sa.sa_handler = &handleSignal;
|
||||
// Restart the system call, if at all possible
|
||||
@ -80,7 +80,7 @@ void unhookHandler() {
|
||||
if (--hookedUpCount > 0) {
|
||||
return;
|
||||
}
|
||||
struct sigaction sa {};
|
||||
struct sigaction sa{};
|
||||
// Setup the sighub handler
|
||||
sa.sa_handler = SIG_DFL;
|
||||
// Restart the system call, if at all possible
|
||||
@ -273,7 +273,7 @@ void FatalSignalHandler::installFatalSignalHandlers() {
|
||||
return;
|
||||
}
|
||||
fatalSignalHandlersInstalled = true;
|
||||
struct sigaction sa {};
|
||||
struct sigaction sa{};
|
||||
sigemptyset(&sa.sa_mask);
|
||||
// Since we'll be in an exiting situation it's possible there's memory
|
||||
// corruption, so make our own stack just in case.
|
||||
|
||||
Reference in New Issue
Block a user