Skip to main content

Convert microsoft c_cpp_properties.json to a compilation database file

Project description

cpp_to_compile_commands

What does this do

This converts files from the microsoft c_cpp_properties.json file to a compilation database file. This file can be read by everything, including clangd.

Installation

You can find it on pypi

Usage

See cpp_to_compile_commands --help

Features

Many thinsg are hard coded and not fully usable yet. I made some advanced featurs, that were needed for my use case. (like prefix folding, so that gcc prefixes get recognized by clang). If you need a feature, feel free to make an Issue or PR.

I used this to convert the c_cpp_properties.json file, that was created by platformio (and arduino toolchain). So if you provide --cross it also detectes the non standard inlcude paths and adds them. Most of this only works for gcc atm.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpp_to_compile_commands-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpp_to_compile_commands-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file cpp_to_compile_commands-0.1.1.tar.gz.

File metadata

  • Download URL: cpp_to_compile_commands-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for cpp_to_compile_commands-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0731592443b43de1e114bd4d3755eeba8a7fe4f9fb82e5b890d7db651d09feae
MD5 9aa20889dcfa2484270a5b330eee50a2
BLAKE2b-256 19fd8d1e789038bf55c550ef2600113a1bdb2a895bfe4079de1e5b5bc8ddfff4

See more details on using hashes here.

File details

Details for the file cpp_to_compile_commands-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cpp_to_compile_commands-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 769367801864aa9dec9f7c7ef093e8e2b542eeb31e4a70e4e3287613aade615c
MD5 d620c6e7fd6bb3f0a2a98aff5b50867c
BLAKE2b-256 d24831b843adfb03cb5b1f007cf5236595eaefa0457c49205239022911afcd8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page