mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Prevent `GSL_SUPPRESS` arguments from being modified by clang-format and update existing usages. clang-format was changing something like `GSL_SUPPRESS(r.11)` to `GSL_SUPPRESS(r .11)`. For some compilers (e.g., clang), the `gsl::suppress` attribute takes a quoted string argument. We don't want to insert spaces there.
24 lines
919 B
YAML
24 lines
919 B
YAML
---
|
|
# Defaults for all languages.
|
|
BasedOnStyle: Google
|
|
|
|
# Setting ColumnLimit to 0 so developer choices about where to break lines are maintained.
|
|
# Developers are responsible for adhering to the 120 character maximum.
|
|
ColumnLimit: 0
|
|
SortIncludes: false
|
|
DerivePointerAlignment: false
|
|
# Avoid adding spaces between tokens in GSL_SUPPRESS arguments.
|
|
# E.g., don't change "GSL_SUPPRESS(r.11)" to "GSL_SUPPRESS(r .11)".
|
|
WhitespaceSensitiveMacros: ["GSL_SUPPRESS"]
|
|
|
|
# if you want to customize when working locally see https://clang.llvm.org/docs/ClangFormatStyleOptions.html for options.
|
|
# See ReformatSource.ps1 for a script to update all source according to the current options in this file.
|
|
# e.g. customizations to use Allman bracing and more indenting.
|
|
# AccessModifierOffset: -2
|
|
# BreakBeforeBraces: Allman
|
|
# CompactNamespaces: false
|
|
# IndentCaseLabels: true
|
|
# IndentWidth: 4
|
|
# NamespaceIndentation: All
|
|
|
|
...
|