Commit 9ae61674 authored by Alice Y Cheng's avatar Alice Y Cheng
Browse files

add files

parent 1f802fe6
Showing with 114 additions and 0 deletions
+114 -0
#!/bin/bash
if loc="$(type -p "clang-format")" && [[ -x $loc ]]; then
for name in $(git diff --cached --name-only --diff-filter=ACM); do
if echo $name | grep -Eq "\.[ch]$"; then
echo "Formatting ${name}..."
clang-format -i $name
fi
done
else
echo "You do not have clang-format installed; so, we were unable to unify the formatting in your files."
fi
*.o
*.dSYM
# Windows build artifacts
*.exe
*.ilk
*.obj
*.pdb
split:
script: "/testers/cs3/project00/split/test"
print:
script: "/testers/cs3/project00/print/test"
blanks:
script: "/testers/cs3/project00/blanks/test"
reverse:
script: "/testers/cs3/project00/reverse/test"
\ No newline at end of file
{
"configurations": [
// Windows-specific
{
"name": "Win32",
"intelliSenseMode": "msvc-x64",
"compilerPath": "cl.exe",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/${env:USERNAME}/msvc/include"
],
"defines": [
"_USE_MATH_DEFINES",
"_WIN32",
"_CRT_SECURE_NO_WARNINGS"
]
},
// Default to clang for other systems
{
"name": "Mac",
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**"
]
},
{
"name": "Linux",
"intelliSenseMode": "clang-x64",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"includePath": [
"${workspaceFolder}/**"
]
}
],
"version": 4
}
{
"version": "0.2.0",
"configurations": [
// Need to separate debug configurations because
// they use different debuggers
// If you want to create a configuration for a specific binary,
// it would look like this
// you can debug any test by opening it, navigating to the debugger menu,
// setting breakpoints, and clicking debug
{
"name": "Debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
]
}
{
// Easier to go through VsDevCmd than to hack PATH
"terminal.integrated.shell.windows": "cmd.exe",
"terminal.integrated.env.windows": {
"VsDevCmd": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\""
},
"terminal.integrated.shellArgs.windows": [
"/k",
"%VsDevCmd%",
"&&",
// CMD _sucks_, drop into PS immediately
"powershell.exe"
],
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment