add clang format

This commit is contained in:
Bassem Girgis
2020-11-12 14:10:19 -06:00
parent 0341fd46fd
commit 94ad5c8367
3 changed files with 374 additions and 5 deletions

188
.vscode/settings.json vendored
View File

@@ -1,3 +1,189 @@
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
"editor.tabSize": 2,
"editor.rulers": [
80
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"C_Cpp.default.cppStandard": "c++14",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.loggingLevel": "Debug",
"clang-format.assumeFilename": "${workspaceFolder}/dummy.cpp",
"clang-format.language.java.enable": false,
"clang-format.language.javascript.enable": false,
"clang-format.language.typescript.enable": false,
"files.associations": {
"*.i": "plaintext",
"iostream": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"string_view": "cpp",
"fstream": "cpp",
"functional": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"system_error": "cpp",
"thread": "cpp",
"cinttypes": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"utility": "cpp",
"variant": "cpp",
"__config": "cpp",
"__nullptr": "cpp",
"algorithm": "cpp",
"string": "cpp",
"*.test": "python",
"ios": "cpp",
"iterator": "cpp",
"locale": "cpp",
"map": "cpp",
"set": "cpp",
"strstream": "cpp",
"xthread": "cpp",
"xfacet": "cpp",
"xfunctional": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocbuf": "cpp",
"xlocinfo": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xstring": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp",
"stack": "cpp",
"*.ipp": "cpp",
"cassert": "cpp",
"xxatomic": "cpp"
},
"python.pythonPath": ".venv\\Scripts\\python.exe",
"python.autoComplete.addBrackets": false,
"python.autoComplete.extraPaths": [],
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
"-a",
"-a",
"--max-line-length",
"80"
],
"python.sortImports.args": [
"--multi-line=3",
"--line-width=80",
"--trailing-comma"
],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--enable=W0614",
"--disable=missing-docstring",
"--disable=invalid-name",
"--disable=no-self-use"
],
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-line-length",
"80"
],
"files.exclude": {
"**/__pycache__": true
},
"python.testing.pytestArgs": [],
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestEnabled": true,
"cSpell.enableFiletypes": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"git-commit",
"go",
"handlebars",
"haskell",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"json",
"jsonc",
"latex",
"less",
"markdown",
"php",
"plaintext",
"pug",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescript",
"typescriptreact",
"yaml",
"yml"
],
"terminal.integrated.scrollback": 1000000,
"cmakeFormat.args": [
"--config-file",
".cmake-format.py",
],
"cSpell.words": [
"cmake",
"gtest"
]
}