项目作者: trailofbits

项目描述 :
Rewrite C++ code to automatically apply `constexpr` where possible
高级语言: C++
项目地址: git://github.com/trailofbits/constexpr-everything.git
创建时间: 2019-05-07T20:57:06Z
项目社区:https://github.com/trailofbits/constexpr-everything

开源协议:Apache License 2.0

下载


constexpr-everything

Build Status

A libclang based project to automatically rewrite as much code as possible to be
evaluated in constexpr contexts.

Requires LLVM (and Clang) 9, 10, or 11.

Building

  1. mkdir build
  2. cd build
  3. cmake -DCMAKE_BUILD_TYPE=Debug ..
  4. cmake --build .

Usage

Build a project with a
compilation database,
run constexpr-everything on the source files.

Read more about the tool at
https://blog.trailofbits.com/2019/06/27/use-constexpr-for-faster-smaller-and-safer-code/.

License

constexpr-everything is licensed and distributed under the Apache 2.0 license.
Contact us if you’re looking for an exception to the terms.