3.1.41.2.1. waf_tools.vscode.build_c_cpp_properties

waf_tools.vscode.build_c_cpp_properties(bld: BuildContext, vscode_dir: Node, tg: task_gen) → None

Patch c_cpp_properties.json with project-specific defines and includes.

Reads the template c_cpp_properties.json from vscode_dir, then:

  • Populates the defines list with compiler built-in defines (if use_compiler_defines is set) and any extra defines from the task generator.

  • Resolves include paths from include_dirs, glob_patterns and dynamic project paths (if use_dynamic_includes is set).

  • Appends TI ARM CGT compiler and HALCoGen include paths (if use_compiler_includes is set).

  • Sets GCC as the dummy compilerPath for IntelliSense.

Parameters:
  • bld – The active build context.

  • vscode_dir – The target .vscode directory node.

  • tg – The task generator providing configuration attributes.