openqasm / qe-compiler

An MLIR based compiler dynamic circuit compiler for real-time control systems supporting OpenQASM 3
Other
38 stars 12 forks source link

Add LLVM style compile warnings #269

Closed bcdonovan closed 4 months ago

bcdonovan commented 4 months ago

This PR adds LLVM style compiler warnings with the option to disable the warnings.

The warnings are taken from llvm's HandleLLVMOptions.cmake with a few exceptions:

  1. MSVC / Clang-CL related tests are removed
  2. covered-switch-default has been disabled

The usage of the warnings may be disabled by setting an option with: conan install .. -o enable_warnings=False

prior to running: conan build ..