# 階段一:只檢查最關鍵的錯誤,適合舊代碼 Checks: '-*, clang-analyzer-core.NullDereference, clang-analyzer-core.DivideZero, clang-analyzer-core.UndefinedBinaryOperatorResult, bugprone-argument-comment, bugprone-bool-pointer-implicit-conversion, bugprone-dangling-handle, bugprone-use-after-move, readability-braces-around-statements, readability-container-size-empty' # 不將警告視為錯誤(階段一) WarningsAsErrors: '' # 包含所有標頭檔 HeaderFilterRegex: '.*' # 分析設定 AnalyzeTemporaryDtors: false FormatStyle: none # 檢查參數 CheckOptions: - key: readability-braces-around-statements.ShortStatementLines value: '2'