Skip to content

Commit

Permalink
formats
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Jan 12, 2024
1 parent 1cadebe commit 9a68098
Show file tree
Hide file tree
Showing 8 changed files with 15,284 additions and 3,142 deletions.
53 changes: 2 additions & 51 deletions code/shared/code.ts
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
import _LLVM_ARCHITECTURE_CONTENT from './data/llvm.architecture.json'
import LLVM_CPU_CONTENT from './data/llvm.cpu.json'
import LLVM_CPU from './data/llvm.cpu.key.json'
import LLVM_FEATURE_CONTENT from './data/llvm.feature.json'
import LLVM_FEATURE from './data/llvm.feature.key.json'
const x = {}

export const LLVM_OPTIMIZATION_LEVEL = [0, 1, 2, 3]

export type LlvmOptimizationLevel =
(typeof LLVM_OPTIMIZATION_LEVEL)[number]

export type LlvmArchitecture = (typeof LLVM_ARCHITECTURE)[number]

// export const LLVM_ARCHITECTURE_CONTENT_FEATURE: Record<LlvmArchitecture>

export { LLVM_CPU_CONTENT }
export { LLVM_CPU }
export { LLVM_FEATURE_CONTENT }
export { LLVM_FEATURE }

export type LlvmCpu = (typeof LLVM_CPU)[number]
export type LlvmFeature = (typeof LLVM_FEATURE)[number]

export const CLANG_FORMAT_PREDEFINED_STYLE = [
'llvm',
'gnu',
'google',
'chromium',
'microsoft',
'mozilla',
'webkit',
] as const

export type ClangFormatPredefinedStyle =
(typeof CLANG_FORMAT_PREDEFINED_STYLE)[number]

export type ClangFormatStyle =
| ClangFormatPredefinedStyle
| Record<string, any>

export const CLANG_FORMAT_CONTENT: Record<
ClangFormatPredefinedStyle,
{ key: string }
> = {
llvm: { key: 'LLVM' },
gnu: { key: 'GNU' },
google: { key: 'Google' },
chromium: { key: 'Chromium' },
microsoft: { key: 'Microsoft' },
mozilla: { key: 'Mozilla' },
webkit: { key: 'WebKit' },
}
export default x
Loading

0 comments on commit 9a68098

Please sign in to comment.