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.0.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.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cpp_to_compile_commands-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 00ce61c725f736496ebb94cbf527a07e5c4b8a27002a9fd254a63233ea535243
MD5 6f59e8b13774e197eaab83ad642c2e05
BLAKE2b-256 6cbb11253b68471422b29cd5527e039c49dc7298eb83d9c029c165036ef048df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cpp_to_compile_commands-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a73640b013625082fe29964246a718a285f95e29b535a81393c1d3aa6236bc72
MD5 35cfb8da1a09f688a7374fe6f3e1af4b
BLAKE2b-256 8f2b26dcc7f24e85ca72a6d27307bccb298ecefb18ca710a0408bab250549856

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