# generate .vscode/c_cpp_properties.json
import os
import json

# No implement yet
compilerOpts = {}
compilerSettings = {}
includes = []

strIncs = []
aux = []

if compilerSettings['INCLUDES']:
    aux += compilerSettings['INCLUDES']
if includes:
    aux += includes

strIncs = [str(i) for i in aux]

defines = []
if compilerOpts['MACROS']:
    deflist = compilerOpts['MACROS']
    defines = [d.replace('-D', '') for d in deflist]

c_cpp_properties = {
    "configurations": [
        {
            'name': 'ARM',
            'defines': defines,
            "compilerPath": "arm-none-eabi-gcc",
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "includePath": strIncs,
            "browse": {
                "path": strIncs,
                "limitSymbolsToIncludedHeaders": True,
                "databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db"
            }
        }
    ],
    "version": 4
}

output = json.dumps(c_cpp_properties, indent=4)

if not os.path.exists('.vscode'):
    os.makedirs('.vscode')
fileout = open(".vscode/c_cpp_properties.json", "w")
fileout.write(output)
fileout.close()
aa43bf199331029cb719b1e7580a58c5925a25c4
<mask token>

<mask token>
if compilerSettings['INCLUDES']:
    aux += compilerSettings['INCLUDES']
if includes:
    aux += includes
<mask token>
if compilerOpts['MACROS']:
    deflist = compilerOpts['MACROS']
    defines = [d.replace('-D', '') for d in deflist]
<mask token>
if not os.path.exists('.vscode'):
    os.makedirs('.vscode')
<mask token>
fileout.write(output)
fileout.close()

<mask token>
compilerOpts = {}
compilerSettings = {}
includes = []
strIncs = []
aux = []
if compilerSettings['INCLUDES']:
    aux += compilerSettings['INCLUDES']
if includes:
    aux += includes
strIncs = [str(i) for i in aux]
defines = []
if compilerOpts['MACROS']:
    deflist = compilerOpts['MACROS']
    defines = [d.replace('-D', '') for d in deflist]
c_cpp_properties = {'configurations': [{'name': 'ARM', 'defines': defines,
    'compilerPath': 'arm-none-eabi-gcc', 'intelliSenseMode': 'gcc-x64',
    'cStandard': 'c11', 'cppStandard': 'c++17', 'includePath': strIncs,
    'browse': {'path': strIncs, 'limitSymbolsToIncludedHeaders': True,
    'databaseFilename': '${workspaceFolder}/.vscode/browse.vc.db'}}],
    'version': 4}
output = json.dumps(c_cpp_properties, indent=4)
if not os.path.exists('.vscode'):
    os.makedirs('.vscode')
fileout = open('.vscode/c_cpp_properties.json', 'w')
fileout.write(output)
fileout.close()

import os
import json
compilerOpts = {}
compilerSettings = {}
includes = []
strIncs = []
aux = []
if compilerSettings['INCLUDES']:
    aux += compilerSettings['INCLUDES']
if includes:
    aux += includes
strIncs = [str(i) for i in aux]
defines = []
if compilerOpts['MACROS']:
    deflist = compilerOpts['MACROS']
    defines = [d.replace('-D', '') for d in deflist]
c_cpp_properties = {'configurations': [{'name': 'ARM', 'defines': defines,
    'compilerPath': 'arm-none-eabi-gcc', 'intelliSenseMode': 'gcc-x64',
    'cStandard': 'c11', 'cppStandard': 'c++17', 'includePath': strIncs,
    'browse': {'path': strIncs, 'limitSymbolsToIncludedHeaders': True,
    'databaseFilename': '${workspaceFolder}/.vscode/browse.vc.db'}}],
    'version': 4}
output = json.dumps(c_cpp_properties, indent=4)
if not os.path.exists('.vscode'):
    os.makedirs('.vscode')
fileout = open('.vscode/c_cpp_properties.json', 'w')
fileout.write(output)
fileout.close()

# generate .vscode/c_cpp_properties.json
import os
import json

# No implement yet
compilerOpts = {}
compilerSettings = {}
includes = []

strIncs = []
aux = []

if compilerSettings['INCLUDES']:
    aux += compilerSettings['INCLUDES']
if includes:
    aux += includes

strIncs = [str(i) for i in aux]

defines = []
if compilerOpts['MACROS']:
    deflist = compilerOpts['MACROS']
    defines = [d.replace('-D', '') for d in deflist]

c_cpp_properties = {
    "configurations": [
        {
            'name': 'ARM',
            'defines': defines,
            "compilerPath": "arm-none-eabi-gcc",
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "includePath": strIncs,
            "browse": {
                "path": strIncs,
                "limitSymbolsToIncludedHeaders": True,
                "databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db"
            }
        }
    ],
    "version": 4
}

output = json.dumps(c_cpp_properties, indent=4)

if not os.path.exists('.vscode'):
    os.makedirs('.vscode')
fileout = open(".vscode/c_cpp_properties.json", "w")
fileout.write(output)
fileout.close()