Cling - The Interactive C++ Interpreter
Go to file
2016-12-20 12:29:06 +01:00
cmake/modules From Bertrand: add ClingConfig.cmake. 2016-06-15 14:14:34 +02:00
demo Remove trailing spaces 2014-08-13 16:08:36 +02:00
docs Add link to cling web page. 2016-08-09 21:44:07 +02:00
include/cling Help doxygen. 2016-12-19 16:44:05 +01:00
lib Use LLVM stream wrappers to reduce complexity and line counts. 2016-12-20 12:29:06 +01:00
patches Remove old file. 2016-07-22 20:54:47 +02:00
test Add simple wrappers for buffered LLVM streams. Use them to control Value printing format. 2016-12-19 13:59:11 +01:00
tools From Roman Zulak: Flush stdout less (cling). 2016-12-19 13:59:11 +01:00
www Prepare for v0.3 release. 2016-08-09 20:58:07 +02:00
.travis.yml Allow deploying our github nightlies again. 2016-10-17 12:13:14 +02:00
appveyor.yml Officially fed up 2016-12-02 16:23:27 +01:00
CMakeLists.txt CMake: Add clang-headers dependency. 2016-12-02 14:14:06 +01:00
CREDITS.txt Add mail. 2016-08-18 15:44:19 +02:00
LastKnownGoodLLVMSVNRevision.txt Note new llvm rev. 2016-07-12 10:44:20 +02:00
LICENSE.TXT Remove trailing spaces 2014-08-13 16:08:36 +02:00
Module.mk Adjust build systems to new file location and linking. 2016-12-20 12:14:09 +01:00
README.md Typo. 2016-09-17 16:23:04 +02:00
VERSION Bump version. 2016-08-09 21:27:58 +02:00

![Travis status](https://travis-ci.org/root-mirror/cling.svg?branch=master) ![Appveyor status](https://ci.appveyor.com/api/projects/status/github/vgvassilev/cling?svg=true&branch=master)

Cling - The Interactive C++ Interpreter

Overview

Cling is an interactive C++ interpreter, built on top of Clang and LLVM compiler infrastructure. Cling realizes the read-eval-print loop (REPL) concept, in order to leverage rapid application development. Implemented as a small extension to LLVM and Clang, the interpreter reuses their strengths such as the praised concise and expressive compiler diagnostics.

See also cling's web page.

Please note that some of the resources are rather old and most of the stated limitations are outdated.

Installation

Release Notes

See our release notes to find what's new.

Binaries

Our nightly binary snapshots can be found here.

Building from Source with Cling Packaging Tool

Cling's tree has a user-friendly, command-line utility written in Python called Cling Packaging Tool (CPT) which can build Cling from source and generate installer bundles for a wide range of platforms. CPT requires Python 2.7 or later.

If you have Cling's source cloned locally, you can find the tool in tools/packaging directory. Alternatively, you can download the script manually, or by using wget:

wget https://raw.githubusercontent.com/root-mirror/cling/master/tools/packaging/cpt.py
chmod +x cpt.py
./cpt.py --check-requirements && ./cpt.py --create-dev-env Debug --with-workdir=./cling-build/

Full documentation of CPT can be found in tools/packaging.

Usage

./cling '#include <stdio.h>' 'printf("Hello World!\n")'`

To get started run:

./cling --help`

or type

./cling
[cling]$ .help`

Jupyter

Cling comes with a Jupyter kernel. After building cling, install Jupyter and run jupyter kernelspec install cling. It requires a fairly new Jupyter. Make sure cling is in your PATH when you start jupyter!

See also the tools/Jupyter subdirectory for more information.

Developers' Corner

Cling's latest doxygen documentation

Contributions

Every contribution is considered a donation and its copyright and any other related rights become exclusive ownership of the person who merged the code or in any other case the main developers of the "Cling Project".

We warmly welcome external contributions to the Cling! By providing code, you agree to transfer your copyright on the code to the "Cling project". Of course you will be duly credited and your name will appear on the contributors page, the release notes, and in the CREDITS file shipped with every binary and source distribution. The copyright transfer is necessary for us to be able to effectively defend the project in case of litigation.

License

Please see our LICENSE.

Releases

Our release steps to follow when cutting a new release:

  1. Update release notes
  2. Remove ~dev suffix from VERSION
  3. Add a new entry in the news section of our website
  4. Commit the changes.
  5. git tag -a v0.x -m "Tagging release v0.x"
  6. Create a draft release in github and copy the contents of the release notes.
  7. Wait for green builds.
  8. Upload binaries to github (Travis should do this automatically).
  9. Publish the tag and announce it on the mailing list.
  10. Increment the current version and append ~dev.