mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2024-11-21 22:06:51 -08:00
adding clang config and lldb files and editor config
This commit is contained in:
parent
fe6e3d3236
commit
6809c6f1bf
43
.clang-tidy
43
.clang-tidy
@ -4,45 +4,46 @@ HeaderFilterRegex: ""
|
|||||||
AnalyzeTemporaryDtors: false
|
AnalyzeTemporaryDtors: false
|
||||||
FormatStyle: llvm
|
FormatStyle: llvm
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
- key: modernize-use-trailing-return-type.Enabled
|
|
||||||
|
- key: modernize-use-trailing-return-type.Enabled
|
||||||
value: false
|
value: false
|
||||||
- key: readability-identifier-naming.NamespaceCase
|
- key: readability-identifier-naming.NamespaceCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.ClassCase
|
- key: readability-identifier-naming.ClassCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.StructCase
|
- key: readability-identifier-naming.StructCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.FunctionCase
|
- key: readability-identifier-naming.FunctionCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.VariableCase
|
- key: readability-identifier-naming.VariableCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.ConstantCase
|
- key: readability-identifier-naming.ConstantCase
|
||||||
value: UPPER_CASE
|
value: UPPER_CASE
|
||||||
- key: readability-identifier-naming.EnumCase
|
- key: readability-identifier-naming.EnumCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.EnumConstantCase
|
- key: readability-identifier-naming.EnumConstantCase
|
||||||
value: UPPER_CASE
|
value: UPPER_CASE
|
||||||
- key: readability-identifier-naming.GlobalConstantCase
|
- key: readability-identifier-naming.GlobalConstantCase
|
||||||
value: UPPER_CASE
|
value: UPPER_CASE
|
||||||
- key: readability-identifier-naming.GlobalVariableCase
|
- key: readability-identifier-naming.GlobalVariableCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.LocalConstantCase
|
- key: readability-identifier-naming.LocalConstantCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.LocalVariableCase
|
- key: readability-identifier-naming.LocalVariableCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.MemberConstantCase
|
- key: readability-identifier-naming.MemberConstantCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.MemberVariableCase
|
- key: readability-identifier-naming.MemberVariableCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.ParameterCase
|
- key: readability-identifier-naming.ParameterCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.TemplateParameterCase
|
- key: readability-identifier-naming.TemplateParameterCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
- key: readability-identifier-naming.TypedefCase
|
- key: readability-identifier-naming.TypedefCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.TypeAliasCase
|
- key: readability-identifier-naming.TypeAliasCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.TypeTemplateParameterCase
|
- key: readability-identifier-naming.TypeTemplateParameterCase
|
||||||
value: CamelCase
|
value: CamelCase
|
||||||
- key: readability-identifier-naming.VariableTemplateCase
|
- key: readability-identifier-naming.VariableTemplateCase
|
||||||
value: camelBack
|
value: camelBack
|
||||||
|
19
.clangd
Normal file
19
.clangd
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
CompileFlags:
|
||||||
|
Add: ["-std=c17"]
|
||||||
|
Remove: ["-Werror"]
|
||||||
|
Index:
|
||||||
|
Background: true
|
||||||
|
OnDidChange: true
|
||||||
|
Diagnostics:
|
||||||
|
OnOpen: true
|
||||||
|
OnSave: true
|
||||||
|
Completion:
|
||||||
|
EnableSnippets: true
|
||||||
|
IncludeBlacklist:
|
||||||
|
- "**/vendor/**"
|
||||||
|
- "**/third_party/**"
|
||||||
|
- "**/generated/**"
|
||||||
|
Format:
|
||||||
|
Workspace:
|
||||||
|
CodeLens:
|
||||||
|
Rename:
|
14
.editorconfig
Normal file
14
.editorconfig
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# C source files
|
||||||
|
[*.{c,h}]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# C++ source files
|
||||||
|
[*.{cpp,hpp}]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
23
.lldbinit
Normal file
23
.lldbinit
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Define architecture and target
|
||||||
|
target create -arch i386-unknown-unknown-unknown
|
||||||
|
settings set target.x86-disassembly-flavor intel
|
||||||
|
|
||||||
|
# Set the default source language to C
|
||||||
|
settings set target.language c
|
||||||
|
|
||||||
|
# Set the default C standard to C11
|
||||||
|
settings set target.c-lang-std c11
|
||||||
|
|
||||||
|
# Set the default C++ standard to C++17
|
||||||
|
settings set target.cxx-lang-std c++17
|
||||||
|
|
||||||
|
# Set the default disassembly flavor to Intel syntax
|
||||||
|
settings set target.x86-disassembly-flavor intel
|
||||||
|
|
||||||
|
# Set the default disassembly format to AT&T syntax
|
||||||
|
settings set target.x86-disassembly-format att
|
||||||
|
|
||||||
|
# Set the default breakpoint command to print the call stack
|
||||||
|
breakpoint command add -s python 1
|
||||||
|
import lldb
|
||||||
|
print(lldb.frame.thread.GetStackFrames())
|
Loading…
Reference in New Issue
Block a user