Skip to main content

Explains and proposes fixes for C/C++ compiler errors.

Project description

cwhy

("See why")

Explains and suggest fixes for C/C++/Rust compiler error messages.

Examples

% clang++ -g test/test.cpp |& cwhy
The error is caused by an implicit instantiation of an undefined
template 'std::hash<Q>'. It seems that the code is trying to use an
unordered_set with a custom type 'Q', but the standard library does
not know how to hash this type. The code needs to provide a hash
function for type 'Q' or specialize the 'std::hash' template for this
type.
% rustc test/testme.rs |& cwhy  
There are three issues:  1. There are two unused variables `x` in the
code.  2. The variable `x` is used after it has already been moved in
the call to `f(x)`, which takes ownership of `x`. 3. The function
`f(x)` takes ownership of `x`, which may not be necessary and could be
changed to borrow the value instead.

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

cwhy-0.0.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

cwhy-0.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file cwhy-0.0.2.tar.gz.

File metadata

  • Download URL: cwhy-0.0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for cwhy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 79f72f2c32fe4ed8ccc3d54f226e10853dfa1e85730f33bc4583d2ada1971156
MD5 d8f039d9b68fd4f67f6c2d39de24ed04
BLAKE2b-256 59057deb6764050da7002f20238ba9f3a75fbc4e871fc8d28a26b0af38dc2542

See more details on using hashes here.

File details

Details for the file cwhy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cwhy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for cwhy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5aff86ce6c1be90fb38e44e64dbffa8aa09f1ac3e5583c89453174aee21c96ec
MD5 3471f22813a85c94e631e3d34ccc2ab0
BLAKE2b-256 d2725ba65934e6c8996ac4f5c86a00c6cd1a4f1144b9169214a42b0e14bcae11

See more details on using hashes here.

Supported by

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