Initial Commit of files

This commit is contained in:
2023-07-10 03:05:34 -07:00
parent c726a44299
commit 0821823a68
18 changed files with 417 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
}
],
"settings": {},
"extensions": {
"recommendations": []
}
}

View File

@@ -0,0 +1,67 @@
{
"env": {
"myDefaultIncludePath": ["${workspaceFolder}", "${workspaceFolder}/include"],
"myCompilerPath": "/usr/local/bin/"
},
"configurations": [
{
"name": "Linux",
"intelliSenseMode": "clang-x64",
"includePath": ["${myDefaultIncludePath}", "/another/path"],
"macFrameworkPath": ["/System/Library/Frameworks"],
"defines": ["FOO", "BAR=100"],
"forcedInclude": ["${workspaceFolder}/include/config.h"],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++20",
"compileCommands": "/path/to/compile_commands.json",
"browse": {
"path": ["${workspaceFolder}"],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "linux-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/gcc",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "linux-gcc-x64",
"compilerArgs": [
"-Wall",
"-Wextra",
"-Wpedantic"
],
"configurationProvider": "ms-vscode.makefile-tools"
},
{
"name": "Linux",
"includePath": [
"/usr/include/x86_64-linux-gnu/c++/5",
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include/x86_64-linux-gnu",
"/usr/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include/x86_64-linux-gnu/c++/5",
"/usr/include/c++/5",
"/usr/local/include",
"/usr/include/x86_64-linux-gnu",
"/usr/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}

View File

@@ -0,0 +1,12 @@
[
{
"directory": "/path/to/project",
"command": "gcc -c -o file1.o file1.c",
"file": "/path/to/project/file1.c"
},
{
"directory": "/path/to/project",
"command": "g++ -c -o file2.o file2.cpp",
"file": "/path/to/project/file2.cpp"
}
]

11
,vscode/extensions.json Normal file
View File

@@ -0,0 +1,11 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"13xforever.language-x86-64-assembly",
"franneck94.c-cpp-runne",
"formulahendry.code-runner",
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack"
]
}

32
,vscode/launch.json Normal file
View File

@@ -0,0 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc-8 - Build and debug active file Level 1",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Debug Build Level 1",
"miDebuggerPath": "/usr/bin/gdb",
"logging": {
"engineLogging": true
}
}
]
}

107
,vscode/settings.json Normal file
View File

@@ -0,0 +1,107 @@
{
"files.associations": {
"*.c": "c",
"*.h": "c",
"*.cpp": "cpp",
"*.hpp": "hpp",
"*.asm": "asm",
"*.bin": "bin"
},
"files.fileAssociations": {
".c": "c",
".h": "c",
".cpp": "cpp",
".hpp": "cpp",
".asm": "asm",
".bin": "bin"
},
"emmet.includeLanguages": {
"c": "c",
"cpp": "cpp",
"assembly": "asm"
},
"C_Cpp_Runner.cCompilerPath": "/usr/bin",
"C_Cpp_Runner.cppCompilerPath": "/usr/bin",
"C_Cpp_Runner.debuggerPath": "/usr/bin",
"C_Cpp_Runner.cStandard": "c17",
"C_Cpp_Runner.cppStandard": "c++20",
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [
"-dynamic-linker {/lib64/ld-linux-x86-64.so.2}"
],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"c-cpp-flylint.enable": true,
"c-cpp-flylint.debug": true,
"c-cpp-flylint.flexelint.enable": false,
"c-cpp-flylint.cppcheck.enable": true,
"c-cpp-flylint.clang.enable": false,
"C_Cpp_Config.cCompilerPath": "gcc",
"C_Cpp_Config.cppCompilerPath": "g++",
"C_Cpp_Config.debuggerPath": "gdb",
"C_Cpp_Config.makePath": "make",
"C_Cpp.clang_format_sortIncludes": true,
"C_Cpp.vcFormat.indent.preserveComments": true,
"C_Cpp.vcFormat.indent.namespaceContents": false,
"C_Cpp.vcFormat.indent.caseContentsWhenBlock": true,
"C_Cpp.vcFormat.space.pointerReferenceAlignment": "right",
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": false,
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.cStandard": "c17",
"C_Cpp.formatting": "clangFormat",
"[c]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"[cpp]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
"C_Cpp.configurationWarnings": "disabled",
"cmake.configureOnOpen": false,
"cmake.autoSelectActiveFolder": false,
"cmake.configureOnEdit": false,
"c-cpp-flylint.flexelint.configFile": "",
"c-cpp-flylint.flexelint.executable": "",
"c-cpp-flylint.language": "c",
"C_Cpp.autocompleteAddParentheses": true,
"C_Cpp.errorSquiggles": "Enabled",
"C_Cpp_Runner.makePath": "",
"cmake.sourceDirectory": "${workspaceFolder}",
"C_Cpp.default.compilerPath": "/usr/bin",
"C_Cpp.loggingLevel": "",
"C_Cpp.default.enableConfigurationSquiggles": "",
"C_Cpp.default.includePath": "/usr/bin",
"workbench.editorAssociations": {
"*.bin": "bin",
"*.c": "c",
"*.h": "c",
"*.cpp": "cpp",
"*.hpp": "hpp",
"*.asm": "asm"
},
"C_Cpp.default.intelliSenseMode": "linux-clang-x86"
}

15
,vscode/tasks.json Normal file
View File

@@ -0,0 +1,15 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "",
"type": "cmake",
"command": "test",
"problemMatcher": [
""
]
}
]
}