diff --git a/script/lint.js b/script/lint.js index aa1bdf40f78..81d5928408d 100755 --- a/script/lint.js +++ b/script/lint.js @@ -281,8 +281,8 @@ async function main () { const opts = parseCommandLine() // no mode specified? run 'em all - if (!opts['c++'] && !opts.javascript && !opts.python && !opts.gn && !opts.patches) { - opts['c++'] = opts.javascript = opts.python = opts.gn = opts.patches = true + if (!opts['c++'] && !opts.javascript && !opts.objc && !opts.python && !opts.gn && !opts.patches) { + opts['c++'] = opts.javascript = opts.objc = opts.python = opts.gn = opts.patches = true } const linters = LINTERS.filter(x => opts[x.key]) diff --git a/shell/browser/mac/atom_application_delegate.mm b/shell/browser/mac/atom_application_delegate.mm index 1935bc5a813..924776b768e 100644 --- a/shell/browser/mac/atom_application_delegate.mm +++ b/shell/browser/mac/atom_application_delegate.mm @@ -33,9 +33,9 @@ static base::mac::ScopedObjCClassSwizzler* g_swizzle_imk_input_session; // not have fatal OOM occur while this method executes, but it is better // than crashing when using IME. base::allocator::SetCallNewHandlerOnMallocFailure(false); - g_swizzle_imk_input_session - ->InvokeOriginal( - self, _cmd, range, attributes, block); + g_swizzle_imk_input_session->InvokeOriginal< + void, NSRange, long long, void (^)(void)>( // NOLINT(runtime/int) + self, _cmd, range, attributes, block); base::allocator::SetCallNewHandlerOnMallocFailure(true); } @end diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index 54123b9e1b4..fea84f1c261 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -7,7 +7,9 @@ #include #include +#include #include +#include #include #include "base/mac/mac_util.h" diff --git a/shell/browser/ui/cocoa/atom_bundle_mover.mm b/shell/browser/ui/cocoa/atom_bundle_mover.mm index 99d7ab93d7a..2f8cf770831 100644 --- a/shell/browser/ui/cocoa/atom_bundle_mover.mm +++ b/shell/browser/ui/cocoa/atom_bundle_mover.mm @@ -10,6 +10,9 @@ #import #import +#include +#include + #include "gin/dictionary.h" #include "shell/browser/browser.h" #include "shell/common/gin_converters/callback_converter.h" diff --git a/shell/browser/ui/cocoa/atom_menu_controller.mm b/shell/browser/ui/cocoa/atom_menu_controller.mm index ade72786b79..663a1ed5e17 100644 --- a/shell/browser/ui/cocoa/atom_menu_controller.mm +++ b/shell/browser/ui/cocoa/atom_menu_controller.mm @@ -5,6 +5,8 @@ #import "shell/browser/ui/cocoa/atom_menu_controller.h" +#include + #include "base/logging.h" #include "base/strings/sys_string_conversions.h" #include "base/strings/utf_string_conversions.h" diff --git a/shell/browser/ui/cocoa/atom_touch_bar.mm b/shell/browser/ui/cocoa/atom_touch_bar.mm index 3a4bc36b47c..416886422a2 100644 --- a/shell/browser/ui/cocoa/atom_touch_bar.mm +++ b/shell/browser/ui/cocoa/atom_touch_bar.mm @@ -5,6 +5,7 @@ #import "shell/browser/ui/cocoa/atom_touch_bar.h" #include +#include #include #include "base/strings/sys_string_conversions.h"