Comran Morshed | f4520e2 | 2016-01-18 16:36:28 +0000 | [diff] [blame] | 1 | --- |
| 2 | BasedOnStyle: Google |
| 3 | --- |
| 4 | Language: Cpp |
| 5 | # Force pointers to the type for C++. |
| 6 | DerivePointerAlignment: false |
| 7 | PointerAlignment: Right |
| 8 | Standard: Cpp11 |
Philipp Schrader | aa76a69 | 2022-05-29 23:55:16 -0700 | [diff] [blame] | 9 | IncludeCategories: |
Philipp Schrader | 790cb54 | 2023-07-05 21:06:52 -0700 | [diff] [blame] | 10 | # Force some headers to be considered third-party headers. |
| 11 | - Regex: '^<(cxx|Halide|HalidBuffer|lzma|node|v8|osqp|oscqp\+\+|snappy|snappy-sinksource).h>$' |
Philipp Schrader | aa76a69 | 2022-05-29 23:55:16 -0700 | [diff] [blame] | 12 | Priority: 3 |
Philipp Schrader | 790cb54 | 2023-07-05 21:06:52 -0700 | [diff] [blame] | 13 | # Force some more third-party headers to be appropriately categorized. |
James Kuszmaul | d2098cb | 2024-01-14 17:32:03 -0800 | [diff] [blame^] | 14 | - Regex: '^(<|")(absl|ceres|ctre|Eigen|external|FRC_NetworkCommunication|foxglove|flatbuffers|glib-2.0|glog|gflags|gmock|gtest|google|libusb-1.0|lz4|opencv2|openssl|rawrtcc|sanitizer|nlohmann|third_party|wpi|tl)/.*(>|")$' |
Philipp Schrader | 790cb54 | 2023-07-05 21:06:52 -0700 | [diff] [blame] | 15 | Priority: 3 |
| 16 | # The default regexes. For some reason, if we don't specify them here, then |
| 17 | # clang-format will overwrite them with the custom ones we specify above. |
| 18 | - Regex: '^<ext/.*\.h>' |
| 19 | Priority: 2 |
| 20 | SortPriority: 0 |
| 21 | CaseSensitive: false |
| 22 | - Regex: '^<.*\.h>' |
| 23 | Priority: 1 |
| 24 | SortPriority: 0 |
| 25 | CaseSensitive: false |
| 26 | - Regex: '^<.*' |
| 27 | Priority: 2 |
| 28 | SortPriority: 0 |
| 29 | CaseSensitive: false |
| 30 | - Regex: '.*' |
| 31 | Priority: 4 |
| 32 | SortPriority: 0 |
| 33 | CaseSensitive: false |
Austin Schuh | 2c7feee | 2021-10-28 20:46:50 -0700 | [diff] [blame] | 34 | |
| 35 | --- |
| 36 | Language: JavaScript |
| 37 | BasedOnStyle: Google |
| 38 | ColumnLimit: 80 |