Vassil Vassilev 5194c7811b Each annotation came from a single top most file. Walk up the loc chain.
STL contains a lot of forwarding headers. For example map forwards to bits/stl_map.
However we still need to annotate the decls that came from stl_map as if they
came from map, because semantically we would like to autoload/show hints about
map and not some 'interesting' stl implementation.

This is why we need to reconstruct the include chain and write out the second
includer. The first one is the prompt's input_line_N.
2014-08-14 15:44:02 +02:00
2014-08-13 16:08:36 +02:00
2014-08-13 16:08:36 +02:00
2014-02-27 12:49:09 +01:00
2014-08-14 14:56:43 +02:00
2014-08-13 16:08:36 +02:00
2014-08-13 16:08:29 +02:00
2014-01-07 11:43:53 +01:00
2014-08-13 16:08:36 +02:00
2014-05-15 13:51:55 +02:00
2014-08-13 16:08:36 +02:00
2014-05-11 18:27:58 +02:00

                         ______  __      ____  _   __  ______
                        / ____/ / /     /  _/ / | / / / ____/
                       / /     / /      / /  /  |/ / / / __
                      / /___  / /___  _/ /  / /|  / / /_/ /
                      \____/ /_____/ /___/ /_/ |_/  \____/

##DESCRIPTION Cling is an interactive C++ interpreter, built on top of Clang and LLVM compiler infrastructure. Cling realizes the read-print-evaluate-loop 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.

Further information & demos

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

##INSTALLATION ###Binaries We offer binary snapshots for download at https://ecsft.cern.ch/dist/cling

###Source CLING source depends on the LLVM[1] and CLANG[2] headers and libraries. You will also need CMake[3] >= 2.6.1 or GNU Make to build all of those packages and subversion[4] and git[5] to get the source code.

[1] http://llvm.org [2] http://clang.llvm.org [3] http://cmake.org [4] http://subversion.tigris.org [5] http://git-scm.com

####Building Building LLVM and CLANG you must:

  • Check out the sources:
    git clone http://root.cern.ch/git/llvm.git src
    cd src
    git checkout cling-patches
    cd tools
    git clone http://root.cern.ch/git/cling.git
    git clone http://root.cern.ch/git/clang.git
    cd clang
    git checkout cling-patches
  • Configure, build and install them, either using CMake:
    cd ..
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/some/install/dir \
          -DLLVM_TARGETS_TO_BUILD=CBackend\;CppBackend\;X86 \
          -DCMAKE_BUILD_TYPE=Debug \
          ../src
    make
    make install
  • or GNU Make (see ../src/configure --help for all options):
    cd ..
    mkdir build
    cd build
    ../src/configure --prefix=/some/install/dir
    make
    make install

##USAGE To get started run: /some/install/dir/bin/cling --help or type /some/install/dir/bin/cling [cling]$ .help

##DEVELOPERS' CORNER: We have doxygen documentation of cling's code at: http://cling.web.cern.ch/cling/doxygen/ ###CONTRIBUTIONS Every contribution is very welcome. It is considered as a donation and its copyright and any other related rights become exclusive ownership of the person merged the code or in any other case the main developers. In order for a contribution to be accepted it has to obey the previously established rules for contribution acceptance in cling's work flow and rules.

Description
Cling - The Interactive C++ Interpreter
Readme 21 MiB
Languages
C++ 71.5%
C 16.4%
Python 5.6%
HTML 3.3%
CMake 2.7%
Other 0.5%