-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cadebe
commit 9a68098
Showing
8 changed files
with
15,284 additions
and
3,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.