.clang-format 936 B

12345678910111213141516171819202122232425262728
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. ---
  5. BasedOnStyle: Google
  6. AllowShortBlocksOnASingleLine: 'false'
  7. AllowShortIfStatementsOnASingleLine: Never
  8. AllowShortLoopsOnASingleLine: 'false'
  9. DerivePointerAlignment: 'false'
  10. ExperimentalAutoDetectBinPacking: 'false'
  11. FixNamespaceComments: 'true'
  12. InsertBraces: 'true'
  13. PointerAlignment: Left
  14. # We abuse control macros for formatting other kinds of macros.
  15. SpaceBeforeParens: ControlStatementsExceptControlMacros
  16. IfMacros:
  17. [
  18. 'CARBON_DEFINE_RAW_ENUM_CLASS',
  19. 'CARBON_DEFINE_ENUM_CLASS_NAMES',
  20. 'CARBON_DEFINE_RAW_ENUM_MASK',
  21. 'CARBON_DEFINE_ENUM_MASK_NAMES',
  22. 'CARBON_KIND_SWITCH',
  23. ]
  24. StatementMacros: ['ABSTRACT']
  25. QualifierAlignment: Custom
  26. QualifierOrder:
  27. [inline, static, friend, constexpr, const, volatile, restrict, type]