Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

trailofbits/constexpr-everything

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
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.