adding clang config and lldb files and editor config

This commit is contained in:
Gregory Kenneth Bowne 2023-10-18 14:44:20 -07:00
parent fe6e3d3236
commit 6809c6f1bf
4 changed files with 78 additions and 21 deletions

View File

@ -4,6 +4,7 @@ HeaderFilterRegex: ""
AnalyzeTemporaryDtors: false
FormatStyle: llvm
CheckOptions:
- key: modernize-use-trailing-return-type.Enabled
value: false
- key: readability-identifier-naming.NamespaceCase

19
.clangd Normal file
View 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
View 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
View 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())