added default_vscode/c_cpp_properties.json

This commit is contained in:
Timerix 2025-11-09 20:32:34 +05:00
parent d1660e05cb
commit 49ccc76933
4 changed files with 22 additions and 4 deletions

View File

@ -1,6 +1,8 @@
## 2.2.4
+ **default config**: C standard changed to C99
+ **default config**: enabled more warnings
+ added file `default_vscode/c_cpp_properties.json`
+ fixed copying of `default_vscode` files
## 2.2.3
+ removed `\r` characters from `detect_os.sh`

View File

@ -106,8 +106,10 @@ do
if ask_yn "Copy default .vscode launch tasks?"; then
new_project_vscode_dir="$new_project_dir/.vscode"
mkdir -p "$new_project_vscode_dir"
cp -vr "$CBUILD_INSTALL_DIR/default_vscode/"* "$new_project_vscode_dir/"
mkdir -pv "$new_project_vscode_dir"
for vscode_dir_f in $(find "$CBUILD_INSTALL_DIR/default_vscode/" -type f); do
cp -vr "$vscode_dir_f" "$new_project_vscode_dir/"
done
sed "s,\%PROJECT_NAME\%,$project_name,g" \
"$new_project_vscode_dir/launch.json" > "$new_project_vscode_dir/launch.json.temp"
mv "$new_project_vscode_dir/launch.json.temp" "$new_project_vscode_dir/launch.json"

View File

@ -33,9 +33,9 @@ ENABLED_DEPENDENCIES=''
# └── profile/ - gcc *.gcda profiling info files
OBJDIR="obj"
OUTDIR="bin"
STATIC_LIB_FILE="lib$PROJECT.a"
STATIC_LIB_FILE="$PROJECT.a"
# example: "-I./dependencies/include/SDL2"
# example: "-I./include"
INCLUDE=""
# OS-specific options

View File

@ -0,0 +1,14 @@
{
"configurations": [
{
"name": "all",
"defines": [],
"includePath": [
// "include",
"${default}"
],
"cStandard": "c99"
}
],
"version": 4
}