mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
The different approach to Names avoids the issues with trying to define a static member (or also member function) of the templated instance of Carbon::Internal::EnumBase from a non-enclosing namespace such as Carbon::SemIR. Note, I'm trying to do this from the cpp file. An alternative might be to do `inline constexpr llvm::StringLiteral Names[]` in the .h file, but I think concerns had been raised about that needing deduplication.
19 lines
697 B
YAML
19 lines
697 B
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
---
|
|
BasedOnStyle: Google
|
|
AllowShortBlocksOnASingleLine: 'false'
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLoopsOnASingleLine: 'false'
|
|
DerivePointerAlignment: 'false'
|
|
ExperimentalAutoDetectBinPacking: 'false'
|
|
FixNamespaceComments: 'true'
|
|
PointerAlignment: Left
|
|
# We abuse control macros for formatting other kinds of macros.
|
|
SpaceBeforeParens: ControlStatementsExceptControlMacros
|
|
IfMacros:
|
|
['CARBON_DEFINE_RAW_ENUM_CLASS', 'CARBON_DEFINE_RAW_ENUM_CLASS_NO_NAMES']
|
|
StatementMacros: ['ABSTRACT']
|