mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
* build: enable more performance-* clang-tidy checks * chore: performance-prefer-single-char-overloads Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: performance-unnecessary-copy-initialization Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: performance-use-std-move Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: performance-move-const-arg Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: performance-no-automatic-move Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: address review feedback Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MC6nEgyED2MtseZ9KdGMpt * chore: fix new clang-tidy performance findings Address performance-use-std-move, performance-move-const-arg, and performance-prefer-single-char-overloads findings in code that landed on main since the previous base. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MC6nEgyED2MtseZ9KdGMpt * chore: fix new clang-tidy performance findings on macOS Silence performance-unnecessary-copy-initialization for task runners captured by Objective-C blocks in the macOS file and message box dialogs, matching the existing pattern: the copy is needed since a block would otherwise capture the reference by reference. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MC6nEgyED2MtseZ9KdGMpt --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
23 lines
818 B
YAML
23 lines
818 B
YAML
---
|
|
Checks: 'clang-analyzer-core.*,
|
|
clang-analyzer-cplusplus.*,
|
|
clang-analyzer-deadcode.*,
|
|
clang-analyzer-nullability.*,
|
|
clang-analyzer-osx.*,
|
|
clang-analyzer-security.*,
|
|
clang-analyzer-unix.*,
|
|
performance-for-range-copy,
|
|
performance-implicit-conversion-in-loop,
|
|
performance-move-const-arg,
|
|
performance-no-automatic-move,
|
|
performance-prefer-single-char-overloads,
|
|
performance-unnecessary-copy-initialization,
|
|
performance-use-std-move,
|
|
-bugprone-forward-declaration-namespace,
|
|
-clang-analyzer-core.CallAndMessage,
|
|
-clang-analyzer-security.PointerSub'
|
|
# Only report header diagnostics in Electron's headers
|
|
HeaderFilterRegex: '^(\.\./)*electron/'
|
|
InheritParentConfig: true
|
|
...
|