Remove trailing spaces

This commit is contained in:
Philippe Canal 2014-08-03 21:05:42 -05:00 committed by sftnight
parent 417dfa1c6f
commit 576ca3ca96
94 changed files with 1284 additions and 1284 deletions

View File

@ -106,7 +106,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
@ -162,7 +162,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@ -197,7 +197,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
@ -209,7 +209,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
@ -267,7 +267,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
@ -318,7 +318,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
@ -380,7 +380,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
@ -421,7 +421,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
@ -473,7 +473,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is

View File

@ -1,43 +1,43 @@
```
______ __ ____ _ __ ______
/ ____/ / / / _/ / | / / / ____/
/ / / / / / / |/ / / / __
/ /___ / /___ _/ / / /| / / /_/ /
\____/ /_____/ /___/ /_/ |_/ \____/
/ / / / / / / |/ / / / __
/ /___ / /___ _/ / / /| / / /_/ /
\____/ /_____/ /___/ /_/ |_/ \____/
```
##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.
##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.
* https://github.com/vgvassilev/cling/tree/master/www/docs/talks
* http://blog.coldflake.com/posts/2012-08-09-On-the-fly-C++.html
* http://solarianprogrammer.com/2012/08/14/cling-cpp-11-interpreter/
* https://www.youtube.com/watch?v=f9Xfh8pv3Fs
* https://www.youtube.com/watch?v=BrjV1ZgYbbA
* https://www.youtube.com/watch?v=wZZdDhf2wDw
* https://www.youtube.com/watch?v=eoIuqLNvzFs
### Further information & demos
Please note that some of the resources are rather old and most of the stated limitations are outdated.
* https://github.com/vgvassilev/cling/tree/master/www/docs/talks
* http://blog.coldflake.com/posts/2012-08-09-On-the-fly-C++.html
* http://solarianprogrammer.com/2012/08/14/cling-cpp-11-interpreter/
* https://www.youtube.com/watch?v=f9Xfh8pv3Fs
* https://www.youtube.com/watch?v=BrjV1ZgYbbA
* https://www.youtube.com/watch?v=wZZdDhf2wDw
* https://www.youtube.com/watch?v=eoIuqLNvzFs
##INSTALLATION
###Binaries
##INSTALLATION
###Binaries
We offer binary snapshots for download at https://ecsft.cern.ch/dist/cling
###Source
###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
[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
Building LLVM and CLANG you must:
* Check out the sources:
* Check out the sources:
```bash
git clone http://root.cern.ch/git/llvm.git src
cd src
@ -48,8 +48,8 @@ packages and subversion[4] and git[5] to get the source code.
cd clang
git checkout cling-patches
```
* Configure, build and install them, either using CMake:
* Configure, build and install them, either using CMake:
```bash
cd ..
mkdir build
@ -61,7 +61,7 @@ packages and subversion[4] and git[5] to get the source code.
make
make install
```
* or GNU Make (see ../src/configure --help for all options):
* or GNU Make (see ../src/configure --help for all options):
```bash
cd ..
@ -72,18 +72,18 @@ packages and subversion[4] and git[5] to get the source code.
make install
```
##USAGE
##USAGE
To get started run: `/some/install/dir/bin/cling --help`
or type
`/some/install/dir/bin/cling`
`[cling]$ .help`
##DEVELOPERS' CORNER:
##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.
###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.

View File

@ -6,7 +6,7 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// The demo shows ambiguities in the virtual tables and the nice, expressive
// The demo shows ambiguities in the virtual tables and the nice, expressive
// and accurate errors from clang.
// Author: Vassil Vassilev <vvasilev@cern.ch>

View File

@ -6,7 +6,7 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// The demo shows that cling (clang) can report even the column number of the
// The demo shows that cling (clang) can report even the column number of the
// error and emit caret
// Author: Vassil Vassilev <vvasilev@cern.ch>

View File

@ -6,7 +6,7 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// The demo shows when there is an error in a subexpression the relevant
// The demo shows when there is an error in a subexpression the relevant
// subexpression is highlighted
// Author: Vassil Vassilev <vvasilev@cern.ch>

File diff suppressed because it is too large Load Diff

View File

@ -72,7 +72,7 @@ A.qindexHL:hover {
background-color: #6666cc;
color: #ffffff;
}
A.qindexHL:visited {
A.qindexHL:visited {
text-decoration: none; background-color: #6666cc; color: #ffffff }
A.el { text-decoration: none; font-weight: bold }
A.elRef { font-weight: bold }
@ -147,7 +147,7 @@ TD.indexvalue {
border: 1px solid #CCCCCC;
}
TR.memlist {
background-color: #f0f0f0;
background-color: #f0f0f0;
}
P.formulaDsp { text-align: center; }
IMG.formulaDsp { }
@ -311,10 +311,10 @@ HR { height: 1px;
border-top: 1px solid black;
}
/*
/*
* LLVM Modifications.
* Note: Everything above here is generated with "doxygen -w htlm" command. See
* "doxygen --help" for details. What follows are CSS overrides for LLVM
* "doxygen --help" for details. What follows are CSS overrides for LLVM
* specific formatting. We want to keep the above so it can be replaced with
* subsequent doxygen upgrades.
*/
@ -326,7 +326,7 @@ HR { height: 1px;
vertical-align: middle;
}
.title {
font-size: 25pt;
font-size: 25pt;
color: black; background: url("../img/lines.gif");
font-weight: bold;
border-width: 1px;

View File

@ -1,10 +1,10 @@
<hr>
<p class="footer">
Generated on $datetime for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
Generated on $datetime for r$LatestRev$ by <a href="http://www.doxygen.org">Doxygen
$doxygenversion</a>.</p>
<p class="footer">
See the <a href="http://cling.web.cern.ch/cling/">Main Cling Web Page</a> for more
See the <a href="http://cling.web.cern.ch/cling/">Main Cling Web Page</a> for more
information.</p>
</body>
</html>

View File

@ -3,13 +3,13 @@
/// @section main_intro Introduction
/// Welcome to the cling project.
///
/// This documentation describes the @b internal software that makes
/// This documentation describes the @b internal software that makes
/// up cling, not the @b external use of cling. There are no instructions
/// here on how to use cling, only the APIs that make up the software. For
/// usage instructions, please see the programmer's guide or reference
/// here on how to use cling, only the APIs that make up the software. For
/// usage instructions, please see the programmer's guide or reference
/// manual.
///
/// @section main_caveat Caveat
/// This documentation is generated directly from the source code with doxygen.
/// @section main_caveat Caveat
/// This documentation is generated directly from the source code with doxygen.
/// Since cling is constantly under active development, what you're about to
/// read is out of date!

View File

@ -10,11 +10,11 @@ h1, a { color: #336699; }
/*** Top menu style ****/
.mmenuon {
.mmenuon {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ff6600; font-size: 10pt;
}
.mmenuoff {
.mmenuoff {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ffffff; font-size: 10pt;
}
@ -26,22 +26,22 @@ h1, a { color: #336699; }
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ffffff; font-size: xx-small;
}
.sections {
.sections {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 11pt;
}
.dsections {
.dsections {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 12pt;
}
.slink {
.slink {
font-family: Arial,Helvetica; font-weight: normal; text-decoration: none;
color: #000000; font-size: 9pt;
}
.slink2 { font-family: Arial,Helvetica; text-decoration: none; color: #336699; }
.slink2 { font-family: Arial,Helvetica; text-decoration: none; color: #336699; }
.maintitle {
.maintitle {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 18pt;
}
@ -70,20 +70,20 @@ P {
PRE {
font-size: 10pt;
}
.quote {
.quote {
font-family: Times; text-decoration: none;
color: #000000; font-size: 9pt; font-style: italic;
}
.smstd { font-family: Arial,Helvetica; color: #000000; font-size: x-small; }
.std { font-family: Arial,Helvetica; color: #000000; }
.meerkatTitle {
}
.smstd { font-family: Arial,Helvetica; color: #000000; font-size: x-small; }
.std { font-family: Arial,Helvetica; color: #000000; }
.meerkatTitle {
font-family: sans-serif; font-size: x-small; color: black; }
.meerkatDescription { font-family: sans-serif; font-size: 10pt; color: black }
.meerkatCategory {
font-family: sans-serif; font-size: 9pt; font-weight: bold; font-style: italic;
.meerkatCategory {
font-family: sans-serif; font-size: 9pt; font-weight: bold; font-style: italic;
color: brown; }
.meerkatChannel {
.meerkatChannel {
font-family: sans-serif; font-size: 9pt; font-style: italic; color: brown; }
.meerkatDate { font-family: sans-serif; font-size: xx-small; color: #336699; }
@ -93,12 +93,12 @@ PRE {
}
.toc-item {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #336699; font-size: 10pt; text-decoration: underline;
}
.perlVersion {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #336699; font-size: 10pt; text-decoration: none;
}
@ -112,12 +112,12 @@ PRE {
color: #000000; font-size: 10pt;
}
.dotDot {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #000000; font-size: 9pt;
}
.docSec {
font-family: Arial,Helvetica; font-weight: normal;
font-family: Arial,Helvetica; font-weight: normal;
color: #333333; font-size: 9pt;
}
.docVersion {
@ -169,15 +169,15 @@ UL > LI > A {
}
.cpanNavTitle {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #ffffff; font-size: 10pt;
}
.cpanNavLetter {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #333333; font-size: 9pt;
}
.cpanCat {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 9pt;
}
@ -217,40 +217,40 @@ a.bttndrkblue-text:hover {
}
.bg-ltblue {
background-color: #f0f5fa;
}
}
.border-left-b {
background: #f0f5fa url(/i/corner-leftline.gif) repeat-y;
}
}
.border-right-b {
background: #f0f5fa url(/i/corner-rightline.gif) repeat-y;
}
}
.border-top-b {
background: #f0f5fa url(/i/corner-topline.gif) repeat-x;
}
}
.border-bottom-b {
background: #f0f5fa url(/i/corner-botline.gif) repeat-x;
}
}
.border-right-w {
background: #ffffff url(/i/corner-rightline.gif) repeat-y;
}
}
.border-top-w {
background: #ffffff url(/i/corner-topline.gif) repeat-x;
}
}
.border-bottom-w {
background: #ffffff url(/i/corner-botline.gif) repeat-x;
}
}
.bg-white {
background-color: #ffffff;
}
}
.border-left-w {
background: #ffffff url(/i/corner-leftline.gif) repeat-y;
}
}

View File

@ -14,7 +14,7 @@ B<cling> [B<-c>|B<-S>|B<-E>] B<-std=>I<standard> B<-g>
B<-f>I<feature-option...>
B<-m>I<machine-option...>
B<-o> I<output-file>
B<-stdlib=>I<library>
B<-stdlib=>I<library>
I<input-filenames>
=head1 DESCRIPTION

View File

@ -10,11 +10,11 @@ h1, a { color: #336699; }
/*** Top menu style ****/
.mmenuon {
.mmenuon {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ff6600; font-size: 10pt;
}
.mmenuoff {
.mmenuoff {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ffffff; font-size: 10pt;
}
@ -26,22 +26,22 @@ h1, a { color: #336699; }
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #ffffff; font-size: xx-small;
}
.sections {
.sections {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 11pt;
}
.dsections {
.dsections {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 12pt;
}
.slink {
.slink {
font-family: Arial,Helvetica; font-weight: normal; text-decoration: none;
color: #000000; font-size: 9pt;
}
.slink2 { font-family: Arial,Helvetica; text-decoration: none; color: #336699; }
.maintitle {
.maintitle {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 18pt;
}
@ -70,20 +70,20 @@ P {
PRE {
font-size: 10pt;
}
.quote {
.quote {
font-family: Times; text-decoration: none;
color: #000000; font-size: 9pt; font-style: italic;
}
.smstd { font-family: Arial,Helvetica; color: #000000; font-size: x-small; }
.std { font-family: Arial,Helvetica; color: #000000; }
.meerkatTitle {
.smstd { font-family: Arial,Helvetica; color: #000000; font-size: x-small; }
.std { font-family: Arial,Helvetica; color: #000000; }
.meerkatTitle {
font-family: sans-serif; font-size: x-small; color: black; }
.meerkatDescription { font-family: sans-serif; font-size: 10pt; color: black }
.meerkatCategory {
font-family: sans-serif; font-size: 9pt; font-weight: bold; font-style: italic;
.meerkatCategory {
font-family: sans-serif; font-size: 9pt; font-weight: bold; font-style: italic;
color: brown; }
.meerkatChannel {
.meerkatChannel {
font-family: sans-serif; font-size: 9pt; font-style: italic; color: brown; }
.meerkatDate { font-family: sans-serif; font-size: xx-small; color: #336699; }
@ -93,12 +93,12 @@ PRE {
}
.toc-item {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #336699; font-size: 10pt; text-decoration: underline;
}
.perlVersion {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #336699; font-size: 10pt; text-decoration: none;
}
@ -112,12 +112,12 @@ PRE {
color: #000000; font-size: 10pt;
}
.dotDot {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #000000; font-size: 9pt;
}
.docSec {
font-family: Arial,Helvetica; font-weight: normal;
font-family: Arial,Helvetica; font-weight: normal;
color: #333333; font-size: 9pt;
}
.docVersion {
@ -169,15 +169,15 @@ UL > LI > A {
}
.cpanNavTitle {
font-family: Arial,Helvetica; font-weight: bold;
font-family: Arial,Helvetica; font-weight: bold;
color: #ffffff; font-size: 10pt;
}
.cpanNavLetter {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #333333; font-size: 9pt;
}
.cpanCat {
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
font-family: Arial,Helvetica; font-weight: bold; text-decoration: none;
color: #336699; font-size: 9pt;
}
@ -217,40 +217,40 @@ a.bttndrkblue-text:hover {
}
.bg-ltblue {
background-color: #f0f5fa;
}
}
.border-left-b {
background: #f0f5fa url(/i/corner-leftline.gif) repeat-y;
}
}
.border-right-b {
background: #f0f5fa url(/i/corner-rightline.gif) repeat-y;
}
}
.border-top-b {
background: #f0f5fa url(/i/corner-topline.gif) repeat-x;
}
}
.border-bottom-b {
background: #f0f5fa url(/i/corner-botline.gif) repeat-x;
}
}
.border-right-w {
background: #ffffff url(/i/corner-rightline.gif) repeat-y;
}
}
.border-top-w {
background: #ffffff url(/i/corner-topline.gif) repeat-x;
}
}
.border-bottom-w {
background: #ffffff url(/i/corner-botline.gif) repeat-x;
}
}
.bg-white {
background-color: #ffffff;
}
}
.border-left-w {
background: #ffffff url(/i/corner-leftline.gif) repeat-y;
}
}

View File

@ -33,15 +33,15 @@ namespace runtime {
///
class DynamicExprInfo {
private:
/// \brief The expression template.
const char* m_Template;
std::string m_Result;
/// \brief The variable list.
void** m_Addresses;
/// \brief The variable is set if it is required to print out the result of
/// the dynamic expression after evaluation
bool m_ValuePrinterReq;
@ -49,14 +49,14 @@ namespace runtime {
DynamicExprInfo(const char* templ, void* addresses[], bool valuePrinterReq)
: m_Template(templ), m_Result(templ), m_Addresses(addresses),
m_ValuePrinterReq(valuePrinterReq) {}
///\brief Performs the insertions of the context in the expression just
/// before evaluation. To be used only at runtime.
///
const char* getExpr();
bool isValuePrinterRequested() { return m_ValuePrinterReq; }
const char* getTemplate() const { return m_Template; }
};
};
} // end namespace internal
} // end namespace runtime
} // end namespace cling

View File

@ -25,7 +25,7 @@ namespace runtime {
/// \brief Provides private definitions for the dynamic scopes and runtime
/// bindings. These builtins should not be used for other purposes.
namespace internal {
/// \brief LifetimeHandler is used in case of initialization using address
/// on the automatic store (stack) instead of EvaluateT.
///

View File

@ -27,7 +27,7 @@ namespace runtime {
/// \brief Provides builtins, which are neccessary for the dynamic scopes
/// and runtime bindings. These builtins should be used for other purposes.
namespace internal {
/// \brief EvaluateT is used to replace all invalid source code that
/// occurs, when cling's dynamic extensions are enabled.
///

View File

@ -72,7 +72,7 @@ namespace cling {
public:
///\brief Pushes a new transaction, which will collect the decls that came
/// within the scope of the RAII object. Calls commit transaction at
/// within the scope of the RAII object. Calls commit transaction at
/// destruction.
class PushTransactionRAII {
private:
@ -209,7 +209,7 @@ namespace cling {
///\param [in] input - The input being compiled.
///\param [in] CompilationOptions - The option set driving the compilation.
///\param [in,out] V - The result of the evaluation of the input. Must be
/// initialized to point to the return value's location if the
/// initialized to point to the return value's location if the
/// expression result is an aggregate.
///\param [out] T - The cling::Transaction of the compiled input.
///
@ -365,14 +365,14 @@ namespace cling {
///
void storeInterpreterState(const std::string& name) const;
///\brief Compare the actual interpreter state with the one stored
///\brief Compare the actual interpreter state with the one stored
/// previously.
///
///\param[in] name - The name of the previously stored file
///
void compareInterpreterState(const std::string& name) const;
///\brief Print the included files in a temporary file
///\brief Print the included files in a temporary file
///
///\param[in] out - The output stream to be printed into.
///
@ -389,7 +389,7 @@ namespace cling {
///
///\param[in] input - The input to be compiled.
///\param[in,out] V - The result of the evaluation of the input. Must be
/// initialized to point to the return value's location if the
/// initialized to point to the return value's location if the
/// expression result is an aggregate.
///\param[out] T - The cling::Transaction of the compiled input.
///
@ -398,7 +398,7 @@ namespace cling {
CompilationResult process(const std::string& input, Value* V = 0,
Transaction** T = 0);
///\brief Parses input line, which doesn't contain statements. No code
///\brief Parses input line, which doesn't contain statements. No code
/// generation is done.
///
/// Same as declare without codegening. Useful when a library is loaded and
@ -409,24 +409,24 @@ namespace cling {
///
///\returns Whether the operation was fully successful.
///
CompilationResult parse(const std::string& input,
CompilationResult parse(const std::string& input,
Transaction** T = 0) const;
///\brief Looks for a already generated PCM for the given header file and
///\brief Looks for a already generated PCM for the given header file and
/// loads it.
///
///\param[in] headerFile - The header file for which a module should be
///\param[in] headerFile - The header file for which a module should be
/// loaded.
///
///\returns Whether the operation was fully successful.
///
CompilationResult loadModuleForHeader(const std::string& headerFile);
///\brief Parses input line, which doesn't contain statements. Code
///\brief Parses input line, which doesn't contain statements. Code
/// generation needed to make the module functional.
///
/// Same as declare without most of the codegening. Only a few
/// things, like inline function are codegened. Useful when a
/// Same as declare without most of the codegening. Only a few
/// things, like inline function are codegened. Useful when a
/// library is loaded and the header files need to be imported.
///
///\param[in] input - The input containing the declarations.
@ -455,7 +455,7 @@ namespace cling {
///
/// @param[in] input - The input containing only expressions
/// @param[in,out] V - The value of the executed input. Must be
/// initialized to point to the return value's location if the
/// initialized to point to the return value's location if the
/// expression result is an aggregate.
///
///\returns Whether the operation was fully successful.
@ -470,11 +470,11 @@ namespace cling {
///
/// @param[in] input - The input containing only expressions.
/// @param[in,out] V - The value of the executed input. Must be
/// initialized to point to the return value's location if the
/// initialized to point to the return value's location if the
/// expression result is an aggregate.
///
///\returns Whether the operation was fully successful.
///
///
CompilationResult echo(const std::string& input, Value* V = 0);
///\brief Compiles input line and runs.

View File

@ -54,13 +54,13 @@ namespace cling {
///
llvm::OwningPtr<InterpreterExternalSemaSource> m_ExternalSemaSource;
///\brief Our custom ASTDeserializationListener, translating interesting
///\brief Our custom ASTDeserializationListener, translating interesting
/// events into callbacks.
///
llvm::
OwningPtr<InterpreterDeserializationListener> m_DeserializationListener;
///\brief Our custom PPCallbacks, translating interesting
///\brief Our custom PPCallbacks, translating interesting
/// events into interpreter callbacks.
///
InterpreterPPCallbacks* m_PPCallbacks;
@ -69,8 +69,8 @@ namespace cling {
///
bool m_IsRuntime;
protected:
void UpdateWithNewDecls(const clang::DeclContext *DC,
clang::DeclarationName Name,
void UpdateWithNewDecls(const clang::DeclContext *DC,
clang::DeclarationName Name,
llvm::ArrayRef<clang::NamedDecl*> Decls);
public:
///\brief Constructs the callbacks.
@ -88,10 +88,10 @@ namespace cling {
///\brief Constructs the callbacks with default callback adaptors.
///
///\param[in] interp - an interpreter.
///\param[in] enableExternalSemaSourceCallbacks - creates a default
///\param[in] enableExternalSemaSourceCallbacks - creates a default
/// InterpreterExternalSemaSource and attaches it to Sema.
///\param[in] enableDeserializationListenerCallbacks - creates a default
/// InterpreterDeserializationListener and attaches it to the
/// InterpreterDeserializationListener and attaches it to the
/// ModuleManager if it is set.
///\param[in] enablePPCallbacks - creates a default InterpreterPPCallbacks
/// and attaches it to the Preprocessor.
@ -106,7 +106,7 @@ namespace cling {
cling::Interpreter* getInterpreter() const { return m_Interpreter; }
clang::ExternalSemaSource* getInterpreterExternalSemaSource() const;
clang::ASTDeserializationListener*
clang::ASTDeserializationListener*
getInterpreterDeserializationListener() const;
virtual void InclusionDirective(clang::SourceLocation /*HashLoc*/,
@ -119,7 +119,7 @@ namespace cling {
llvm::StringRef /*RelativePath*/,
const clang::Module* /*Imported*/) {}
virtual bool FileNotFound(llvm::StringRef FileName,
virtual bool FileNotFound(llvm::StringRef FileName,
llvm::SmallVectorImpl<char>& RecoveryPath);
/// \brief This callback is invoked whenever the interpreter needs to

View File

@ -33,7 +33,7 @@ namespace llvm {
namespace cling {
class Interpreter;
///\brief Reflection information query interface. The class performs lookups
/// in the currently loaded information in the AST, using the same Parser,
/// in the currently loaded information in the AST, using the same Parser,
/// Sema and Preprocessor objects.
///
class LookupHelper {

View File

@ -27,7 +27,7 @@ namespace cling {
///\brief Exception that is thrown when a null pointer dereference is found
/// or a method taking non-null arguments is called with NULL argument.
///
///
class NullDerefException : public InterpreterException {
private:
clang::Sema* m_Sema;
@ -41,4 +41,4 @@ namespace cling {
};
} // end namespace runtime
} // end namespace cling
#endif // CLING_RUNTIME_EXCEPTION_H
#endif // CLING_RUNTIME_EXCEPTION_H

View File

@ -35,14 +35,14 @@ namespace clang {
namespace cling {
namespace utils {
///\brief Class containing static utility functions analizing ASTNodes or
///\brief Class containing static utility functions analizing ASTNodes or
/// types.
namespace Analyze {
///\brief Checks whether the declaration is a interpreter-generated wrapper
/// function.
///
///\param[in] ND - The decl being checked. If null returns false.
///\param[in] ND - The decl being checked. If null returns false.
///
///\returns true if the decl is a interpreter-generated wrapper function.
///
@ -64,13 +64,13 @@ namespace utils {
/// Useful for value printing (deciding where to attach the value printer)
/// and value evaluation (deciding that is the type of a value)
///
///\param[in] FD - The declaration being analyzed.
///\param[in] FD - The declaration being analyzed.
///\param[in] FoundAt - The position of the expression to be returned
/// in function's body.
///\param[in] omitDeclStmts - Whether or not to synthesize DeclRefExpr if
/// there is DeclStmt.
///\param[in] S - The semantic analysis object used for
/// synthesis of the DeclRefExpr.
///\param[in] S - The semantic analysis object used for
/// synthesis of the DeclRefExpr.
///\returns 0 if the operation wasn't successful.
///
clang::Expr* GetOrCreateLastExpr(clang::FunctionDecl* FD,
@ -142,7 +142,7 @@ namespace utils {
typedef const clang::Type cType;
typedef llvm::SmallSet<cType*, 4> SkipCollection;
typedef llvm::DenseMap<cType*, cType*> ReplaceCollection;
SkipCollection m_toSkip;
ReplaceCollection m_toReplace;
@ -154,7 +154,7 @@ namespace utils {
bool empty() const { return m_toSkip.size()==0 && m_toReplace.empty(); }
};
///\brief Remove one layer of sugar, but only some kinds.
bool SingleStepPartiallyDesugarType(clang::QualType& QT,
const clang::ASTContext& C);
@ -165,7 +165,7 @@ namespace utils {
/// sugared type, which is to be skipped.
///\param[in] Ctx - The ASTContext.
///\param[in] QT - The type to be partially desugared.
///\param[in] TypeConfig - The set of sugared types which shouldn't be
///\param[in] TypeConfig - The set of sugared types which shouldn't be
/// desugared and those that should be replaced.
///\param[in] fullyQualify - if true insert Elaborated where needed.
///\returns Partially desugared QualType
@ -179,15 +179,15 @@ namespace utils {
///\brief Class containing static utility functions looking up names. Very
/// useful for quick, simple lookups.
///
///
namespace Lookup {
///\brief Quick lookup for a single namespace declaration in a given
///\brief Quick lookup for a single namespace declaration in a given
/// declaration context.
///
///\param[in] S - Semantic Analysis object doing the lookup.
///\param[in] Name - The name we are looking up.
///\param[in] Within - The context within the lookup is done. If 0 the
///\param[in] Within - The context within the lookup is done. If 0 the
/// TranslationUnitDecl is used.
///\returns the found NamespaceDecl or 0.
///
@ -195,12 +195,12 @@ namespace utils {
const char* Name,
const clang::DeclContext* Within = 0);
///\brief Quick lookup for a single named declaration in a given
///\brief Quick lookup for a single named declaration in a given
/// declaration context.
///
///\param[in] S - Semantic Analysis object doing the lookup.
///\param[in] Name - The name we are looking up.
///\param[in] Within - The context within the lookup is done. If 0 the
///\param[in] Within - The context within the lookup is done. If 0 the
/// TranslationUnitDecl is used.
///\returns the found result if single, -1 if multiple or 0 if not found.
///
@ -208,13 +208,13 @@ namespace utils {
const char* Name,
const clang::DeclContext* Within = 0);
///\brief Quick lookup for a single namespace declaration in a given
///\brief Quick lookup for a single namespace declaration in a given
/// declaration context.
///
///\param[in] S - Semantic Analysis object doing the lookup.
///\param[in] Name - The name we are looking up. The & avoids inclusion of
///\param[in] Name - The name we are looking up. The & avoids inclusion of
/// DeclarationName.h (faster at runtime).
///\param[in] Within - The context within the lookup is done. If 0 the
///\param[in] Within - The context within the lookup is done. If 0 the
/// TranslationUnitDecl is used.
///\returns the found result if single, -1 if multiple or 0 if not found.
///

View File

@ -35,10 +35,10 @@ namespace cling {
Stmts.append(CS->body_begin(), CS->body_end());
for (Statements::iterator I = Stmts.begin(); I != Stmts.end(); ++I) {
if (!TraverseStmt(*I) && !m_HandledDecls.count(m_FoundDRE->getDecl())) {
Sema::DeclGroupPtrTy VDPtrTy
Sema::DeclGroupPtrTy VDPtrTy
= m_Sema->ConvertDeclToDeclGroup(m_FoundDRE->getDecl());
StmtResult DS = m_Sema->ActOnDeclStmt(VDPtrTy,
m_FoundDRE->getLocStart(),
StmtResult DS = m_Sema->ActOnDeclStmt(VDPtrTy,
m_FoundDRE->getLocStart(),
m_FoundDRE->getLocEnd());
assert(!DS.isInvalid() && "Invalid DeclStmt.");
I = Stmts.insert(I, DS.take());
@ -60,7 +60,7 @@ namespace cling {
};
} // end namespace cling
namespace cling {
namespace cling {
AutoSynthesizer::AutoSynthesizer(clang::Sema* S)
: TransactionTransformer(S) {
// TODO: We would like to keep that local without keeping track of all
@ -72,7 +72,7 @@ namespace cling {
}
// pin the vtable here.
AutoSynthesizer::~AutoSynthesizer()
AutoSynthesizer::~AutoSynthesizer()
{ }
void AutoSynthesizer::Transform() {
@ -81,7 +81,7 @@ namespace cling {
I != E; ++I) {
// Copy DCI; it might get relocated below.
Transaction::DelayCallInfo DCI = *I;
for (DeclGroupRef::const_iterator J = DCI.m_DGR.begin(),
for (DeclGroupRef::const_iterator J = DCI.m_DGR.begin(),
JE = DCI.m_DGR.end(); J != JE; ++J)
if ((*J)->hasBody())
m_AutoFixer->Fix(cast<CompoundStmt>((*J)->getBody()));

View File

@ -35,7 +35,7 @@ namespace cling {
///\param[in] S - The semantic analysis object.
///
AutoSynthesizer(clang::Sema* S);
virtual ~AutoSynthesizer();
virtual void Transform();

View File

@ -55,7 +55,7 @@ using namespace clang;
// FIXME: This code has been taken (copied from) llvm/tools/clang/lib/Driver/WindowsToolChain.cpp
// and should probably go to some platform utils place.
// the code for VS 11.0 and 12.0 common tools (vs110comntools and vs120comntools)
// the code for VS 11.0 and 12.0 common tools (vs110comntools and vs120comntools)
// has been implemented (added) in getVisualStudioDir()
#ifdef _MSC_VER
@ -383,7 +383,7 @@ namespace cling {
else {
llvm::errs()
<< "Warning in cling::CIFactory::createCI():\n "
"Possible C++ standard library mismatch, compiled with Visual Studio v"
"Possible C++ standard library mismatch, compiled with Visual Studio v"
<< VSVersion << ".0,\n"
"but this version of Visual Studio was not found in your system's registry.\n";
}

View File

@ -51,7 +51,7 @@ add_cling_library(clingInterpreter
clangBasic
clangAST
)
if(NOT WIN32)
set_source_files_properties(RuntimeException.cpp COMPILE_FLAGS -fexceptions)
endif()

View File

@ -303,7 +303,7 @@ namespace cling {
// Sort them alphabetically
std::sort(elems.begin(), elems.end());
}
for(std::vector<std::string>::iterator I = elems.begin(),
for(std::vector<std::string>::iterator I = elems.begin(),
E = elems.end(); I != E; ++I)
Out << *I << '\n';
Out.flush();

View File

@ -28,8 +28,8 @@ namespace cling {
///\brief Collects declarations and fills them in cling::Transaction.
///
/// cling::Transaction becomes is a main building block in the interpreter.
/// cling::DeclCollector is responsible for appending all the declarations
/// cling::Transaction becomes is a main building block in the interpreter.
/// cling::DeclCollector is responsible for appending all the declarations
/// seen by clang.
///
class DeclCollector: public clang::PPCallbacks, public clang::ASTConsumer {
@ -65,8 +65,8 @@ namespace cling {
Transaction* getTransaction() { return m_CurTransaction; }
const Transaction* getTransaction() const { return m_CurTransaction; }
void setTransaction(Transaction* curT) { m_CurTransaction = curT; }
void setTransaction(const Transaction* curT) {
m_CurTransaction = const_cast<Transaction*>(curT);
void setTransaction(const Transaction* curT) {
m_CurTransaction = const_cast<Transaction*>(curT);
}
/// \}

View File

@ -66,14 +66,14 @@ namespace {
namespace cling {
DeclExtractor::DeclExtractor(Sema* S)
: TransactionTransformer(S), m_Context(&S->getASTContext()),
DeclExtractor::DeclExtractor(Sema* S)
: TransactionTransformer(S), m_Context(&S->getASTContext()),
m_UniqueNameCounter(0)
{ }
// pin the vtable here
DeclExtractor::~DeclExtractor()
{ }
DeclExtractor::~DeclExtractor()
{ }
void DeclExtractor::Transform() {
if (!getTransaction()->getCompilationOpts().DeclarationExtraction)
@ -99,7 +99,7 @@ namespace cling {
Stmts.push_back(*I);
continue;
}
for (DeclStmt::decl_iterator J = DS->decl_begin();
J != DS->decl_end(); ++J) {
NamedDecl* ND = dyn_cast<NamedDecl>(*J);
@ -134,7 +134,7 @@ namespace cling {
if (ND->getDeclContext() == ND->getLexicalDeclContext()
|| isa<FunctionDecl>(ND))
ND->setLexicalDeclContext(DC);
else
else
assert(0 && "Not implemented: Decl with different lexical context");
ND->setDeclContext(DC);
@ -160,7 +160,7 @@ namespace cling {
m_Sema->getScopeForContext(DC),
/*AddCurContext*/!isa<UsingDirectiveDecl>(TouchedDecls[i]));
// The transparent DeclContexts (eg. scopeless enum) doesn't have
// The transparent DeclContexts (eg. scopeless enum) doesn't have
// scopes. While extracting their contents we need to update the
// lookup tables and telling them to pick up the new possitions
// in the AST.
@ -169,7 +169,7 @@ namespace cling {
// We can't PushDeclContext, because we don't have scope.
Sema::ContextRAII pushedDC(*m_Sema, InnerDC);
for(DeclContext::decl_iterator DI = InnerDC->decls_begin(),
for(DeclContext::decl_iterator DI = InnerDC->decls_begin(),
DE = InnerDC->decls_end(); DI != DE ; ++DI) {
if (NamedDecl* ND = dyn_cast<NamedDecl>(*DI))
InnerDC->makeDeclVisibleInContext(ND);
@ -235,7 +235,7 @@ namespace cling {
IntegerLiteral* ZeroLit
= IntegerLiteral::Create(*m_Context, ZeroInt, m_Context->IntTy,
SourceLocation());
Stmts.push_back(m_Sema->ActOnReturnStmt(ZeroLit->getExprLoc(),
Stmts.push_back(m_Sema->ActOnReturnStmt(ZeroLit->getExprLoc(),
ZeroLit).take());
}
@ -247,7 +247,7 @@ namespace cling {
// We know the transaction is closed, but it is safe.
getTransaction()->forceAppend(FD);
// Create the VarDecl with the init
// Create the VarDecl with the init
std::string VarName = "__vd";
createUniqueName(VarName);
IdentifierInfo& IIVD = m_Context->Idents.get(VarName);
@ -259,7 +259,7 @@ namespace cling {
CXXScopeSpec CSS;
Expr* UnresolvedLookup
= m_Sema->BuildDeclarationNameExpr(CSS, R, /*ADL*/ false).take();
Expr* TheCall = m_Sema->ActOnCallExpr(TUScope, UnresolvedLookup, Loc,
Expr* TheCall = m_Sema->ActOnCallExpr(TUScope, UnresolvedLookup, Loc,
MultiExprArg(), Loc).take();
assert(VD && TheCall && "Missing VD or its init!");
VD->setInit(TheCall);

View File

@ -56,28 +56,28 @@ namespace cling {
///
bool ExtractDecl(clang::FunctionDecl* FD);
/// \brief Creates unique name (eg. of a variable). Used internally for
/// \brief Creates unique name (eg. of a variable). Used internally for
/// AST node synthesis.
///
void createUniqueName(std::string& out);
///\brief Enforces semantically correct initialization order.
///
/// If we consider \code int i = 1; i++; int j = i; \endcode the code
/// If we consider \code int i = 1; i++; int j = i; \endcode the code
/// snippet will be transformed into
/// \code int i; int j = i; void __cling_wrapper() { int++ } \endcode and
/// \code int i; int j = i; void __cling_wrapper() { int++ } \endcode and
/// the result of will be 1 and not 2. This function scans whether there is
/// more than one declaration and generates:
/// \code
/// \code
/// int i = 1;
/// int __fd_init_order__cling_Un1Qu30() {
/// i++;
/// }
/// int __vd_init_order__cling_Un1Qu31 = __fd_init_order__cling_Un1Qu30();
/// int j = i;
/// int j = i;
/// \endcode
///
///\param[in] Stmts - Collection for which have to run as part of the
///\param[in] Stmts - Collection for which have to run as part of the
/// static initialization.
///
void EnforceInitOrder(llvm::SmallVectorImpl<clang::Stmt*>& Stmts);

View File

@ -25,7 +25,7 @@ namespace runtime {
m_Result = m_Result.erase(found, 1);
++i;
}
return m_Result.c_str();
}
} // end namespace internal

View File

@ -114,8 +114,8 @@ namespace cling {
// Constructors
EvaluateTSynthesizer::EvaluateTSynthesizer(Sema* S)
: TransactionTransformer(S), m_EvalDecl(0), m_LifetimeHandlerDecl(0),
m_LHgetMemoryDecl(0), m_DynamicExprInfoDecl(0), m_DeclContextDecl(0),
m_gCling(0), m_CurDeclContext(0), m_Context(&S->getASTContext()),
m_LHgetMemoryDecl(0), m_DynamicExprInfoDecl(0), m_DeclContextDecl(0),
m_gCling(0), m_CurDeclContext(0), m_Context(&S->getASTContext()),
m_UniqueNameCounter(0), m_NestedCompoundStmts(0)
{ }
@ -126,7 +126,7 @@ namespace cling {
void EvaluateTSynthesizer::Initialize() {
// Most of the declaration we are looking up are in cling::runtime::internal
NamespaceDecl* NSD = utils::Lookup::Namespace(m_Sema, "cling");
NamespaceDecl* clingRuntimeNSD
NamespaceDecl* clingRuntimeNSD
= utils::Lookup::Namespace(m_Sema, "runtime", NSD);
NSD = utils::Lookup::Namespace(m_Sema, "internal", clingRuntimeNSD);
@ -137,7 +137,7 @@ namespace cling {
Sema::ForRedeclaration);
assert(NSD && "There must be a valid namespace.");
m_Sema->LookupQualifiedName(R, NSD);
// We have specialized EvaluateT but we don't care because the templated
// We have specialized EvaluateT but we don't care because the templated
// decl is needed.
TemplateDecl* TplD = dyn_cast_or_null<TemplateDecl>(*R.begin());
m_EvalDecl = dyn_cast<FunctionDecl>(TplD->getTemplatedDecl());
@ -215,7 +215,7 @@ namespace cling {
I != E; ++I) {
// Copy DCI; it might get relocated below.
Transaction::DelayCallInfo DCI = *I;
for (DeclGroupRef::const_iterator J = DCI.m_DGR.begin(),
for (DeclGroupRef::const_iterator J = DCI.m_DGR.begin(),
JE = DCI.m_DGR.end(); J != JE; ++J)
if (ShouldVisit(*J) && (*J)->hasBody()) {
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(*J)) {
@ -329,13 +329,13 @@ namespace cling {
if (Expr* E = NewNode.getAs<Expr>()) {
// Check whether value printer has been requested
bool valuePrinterReq = false;
// If this was the last or the last is not null stmt, means that
// If this was the last or the last is not null stmt, means that
// we need to value print.
// If this is in a wrapper function's body then look for VP.
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(m_CurDeclContext))
valuePrinterReq
= m_NestedCompoundStmts < 2 && utils::Analyze::IsWrapper(FD)
&& ((it+1) == Children.end() || ((it+2) == Children.end()
valuePrinterReq
= m_NestedCompoundStmts < 2 && utils::Analyze::IsWrapper(FD)
&& ((it+1) == Children.end() || ((it+2) == Children.end()
&& !isa<NullStmt>(*(it+1))));
// Assume void if still not escaped
@ -427,12 +427,12 @@ namespace cling {
// Build Arg3 cling::Interpreter
CXXScopeSpec CXXSS;
DeclarationNameInfo NameInfo(m_gCling->getDeclName(),
DeclarationNameInfo NameInfo(m_gCling->getDeclName(),
m_gCling->getLocStart());
Expr* gClingDRE
Expr* gClingDRE
= m_Sema->BuildDeclarationNameExpr(CXXSS, NameInfo ,m_gCling).take();
Inits.push_back(gClingDRE);
// 2.3 Create a variable from LifetimeHandler.
QualType HandlerTy = m_Context->getTypeDeclType(m_LifetimeHandlerDecl);
TypeSourceInfo* TSI = m_Context->getTrivialTypeSourceInfo(HandlerTy,
@ -445,7 +445,7 @@ namespace cling {
HandlerTy,
TSI,
SC_None);
// 2.4 Call the best-match constructor. The method does overload
// resolution of the constructors and then initializes the new
// variable with it
@ -457,7 +457,7 @@ namespace cling {
InitExprResult.take(),
/*DirectInit*/ true,
/*TypeMayContainAuto*/ false);
// 2.5 Register the instance in the enclosing context
CuredDecl->getDeclContext()->addDecl(HandlerInstance);
NewNode.addNode(new (m_Context)
@ -465,7 +465,7 @@ namespace cling {
m_NoSLoc,
m_NoELoc)
);
// 3.1 Build a DeclRefExpr, which holds the object
DeclRefExpr* MemberExprBase
= m_Sema->BuildDeclRefExpr(HandlerInstance,
@ -499,7 +499,7 @@ namespace cling {
MultiExprArg(),
m_NoELoc).take();
// Cast to the type LHS type
Expr* Result
Expr* Result
= utils::Synthesize::CStyleCastPtrExpr(m_Sema, CuredDeclTy, theCall);
// Cast once more (dereference the cstyle cast)
Result = m_Sema->BuildUnaryOp(S, m_NoSLoc, UO_Deref, Result).take();
@ -543,7 +543,7 @@ namespace cling {
return ASTNodeInfo(Node, 0);
}
ASTNodeInfo EvaluateTSynthesizer::VisitBinaryOperator(BinaryOperator* Node) {
ASTNodeInfo EvaluateTSynthesizer::VisitBinaryOperator(BinaryOperator* Node) {
ASTNodeInfo rhs = Visit(Node->getRHS());
ASTNodeInfo lhs;
@ -603,7 +603,7 @@ namespace cling {
// Build Arg1
QualType DCTy = m_Context->getTypeDeclType(m_DeclContextDecl);
Expr* Arg1 = utils::Synthesize::CStyleCastPtrExpr(m_Sema, DCTy,
Expr* Arg1 = utils::Synthesize::CStyleCastPtrExpr(m_Sema, DCTy,
(uint64_t)m_CurDeclContext);
CallArgs.push_back(Arg1);
@ -681,7 +681,7 @@ namespace cling {
InitListExpr* ILE = m_Sema->ActOnInitList(m_NoSLoc,
Inits,
m_NoELoc).takeAs<InitListExpr>();
TypeSourceInfo* TSI
TypeSourceInfo* TSI
= m_Context->getTrivialTypeSourceInfo(VarAddrTy, m_NoSLoc);
Expr* ExprAddresses = m_Sema->BuildCompoundLiteralExpr(m_NoSLoc,
TSI,
@ -708,7 +708,7 @@ namespace cling {
QualType ExprInfoTy = m_Context->getTypeDeclType(m_DynamicExprInfoDecl);
ExprResult Initializer = m_Sema->ActOnParenListExpr(m_NoSLoc, m_NoELoc,
CtorArgs);
TypeSourceInfo* TrivialTSI
TypeSourceInfo* TrivialTSI
= m_Context->getTrivialTypeSourceInfo(ExprInfoTy, SourceLocation());
Expr* Result = m_Sema->BuildCXXNew(m_NoSLoc,
/*UseGlobal=*/false,
@ -846,7 +846,7 @@ namespace cling {
bool VisitDeclStmt(DeclStmt* DS) {
DeclGroupRef DGR = DS->getDeclGroup();
for (DeclGroupRef::const_iterator I = DGR.begin(),
for (DeclGroupRef::const_iterator I = DGR.begin(),
E = DGR.end(); I != E; ++I) {
if (isCandidate(*I)) {
m_ShouldVisitSubTree = true;
@ -855,7 +855,7 @@ namespace cling {
}
return true;
}
// In cases when there is no decl stmt, like dep->Call();
bool VisitDeclRefExpr(DeclRefExpr* DRE) {
if (isCandidate(DRE->getDecl())) {
@ -866,7 +866,7 @@ namespace cling {
}
};
bool EvaluateTSynthesizer::ShouldVisit(Decl* D) {
bool EvaluateTSynthesizer::ShouldVisit(Decl* D) {
DeclVisitor Visitor;
Visitor.TraverseStmt(D->getBody());
return Visitor.getShouldVisitSubTree();

View File

@ -279,7 +279,7 @@ namespace cling {
///
bool GetChildren(ASTNodes& Children, clang::Stmt* Node);
/// \brief Creates unique name (eg. of a variable). Used internally for
/// \brief Creates unique name (eg. of a variable). Used internally for
/// AST node synthesis.
///
void createUniqueName(std::string& out);

View File

@ -38,10 +38,10 @@ namespace cling {
private:
///\brief Set of the symbols that the ExecutionEngine couldn't resolve.
///
///
static std::set<std::string> m_unresolvedSymbols;
///\brief Lazy function creator, which is a final callback which the
///\brief Lazy function creator, which is a final callback which the
/// ExecutionEngine fires if there is unresolved symbol.
///
static std::vector<LazyFunctionCreatorFunc_t> m_lazyFuncCreator;

View File

@ -172,7 +172,7 @@ namespace cling {
const Transaction* nextT = 0;
while (T) {
assert((T->getState() == Transaction::kCommitted
|| T->getState() == Transaction::kRolledBackWithErrors
|| T->getState() == Transaction::kRolledBackWithErrors
|| T->getState() == Transaction::kNumStates // reset from the pool
|| T->getState() == Transaction::kRolledBack)
&& "Not committed?");
@ -188,14 +188,14 @@ namespace cling {
delete m_IRTransformers[i];
}
Transaction* IncrementalParser::beginTransaction(const CompilationOptions&
Transaction* IncrementalParser::beginTransaction(const CompilationOptions&
Opts) {
Transaction* OldCurT = m_Consumer->getTransaction();
Transaction* NewCurT = m_TransactionPool->takeTransaction();
NewCurT->setCompilationOpts(Opts);
// If we are in the middle of transaction and we see another begin
// If we are in the middle of transaction and we see another begin
// transaction - it must be nested transaction.
if (OldCurT && OldCurT != NewCurT
if (OldCurT && OldCurT != NewCurT
&& (OldCurT->getState() == Transaction::kCollecting
|| OldCurT->getState() == Transaction::kCompleted)) {
OldCurT->addNestedTransaction(NewCurT); // takes the ownership
@ -220,10 +220,10 @@ namespace cling {
T->setState(Transaction::kCompleted);
// Empty transaction send it back to the pool.
if (T->empty()) {
assert((!m_Consumer->getTransaction()
assert((!m_Consumer->getTransaction()
|| (m_Consumer->getTransaction() == T))
&& "Cannot release different T");
// If a nested transaction the active one should be its parent
// If a nested transaction the active one should be its parent
// from now on. FIXME: Merge conditional with commitTransaction
if (T->isNestedTransaction())
m_Consumer->setTransaction(T->getParent());
@ -233,7 +233,7 @@ namespace cling {
m_TransactionPool->releaseTransaction(T);
return 0;
}
transformTransactionAST(T);
if (T->empty()) {
m_TransactionPool->releaseTransaction(T);
@ -344,7 +344,7 @@ namespace cling {
clang::UsedAttr(D->getSourceRange(), D->getASTContext(),
0/*AttributeSpellingListIndex*/));
}
for (Transaction::iterator I = T->deserialized_decls_begin(),
for (Transaction::iterator I = T->deserialized_decls_begin(),
E = T->deserialized_decls_end(); I != E; ++I) {
// FIXME: implement for multiple decls in a DGR.
assert(I->m_DGR.isSingleDecl());
@ -406,7 +406,7 @@ namespace cling {
}
// Treat the deserialized decls differently.
for (Transaction::iterator I = T->deserialized_decls_begin(),
for (Transaction::iterator I = T->deserialized_decls_begin(),
E = T->deserialized_decls_end(); I != E; ++I) {
for (DeclGroupRef::iterator DI = I->m_DGR.begin(), DE = I->m_DGR.end();

View File

@ -44,7 +44,7 @@ namespace cling {
///\brief Responsible for the incremental parsing and compilation of input.
///
/// The class manages the entire process of compilation line-by-line by
/// The class manages the entire process of compilation line-by-line by
/// appending the compiled delta to clang'a AST. It provides basic operations
/// on the already compiled code. See cling::Transaction class.
///
@ -121,7 +121,7 @@ namespace cling {
///
Transaction* endTransaction(Transaction* T);
///\brief Commits a transaction if it was complete. I.e pipes it
///\brief Commits a transaction if it was complete. I.e pipes it
/// through the consumer chain, including codegen.
///
///\param[in] T - the transaction to be committed
@ -188,10 +188,10 @@ namespace cling {
///
Transaction* Compile(llvm::StringRef input, const CompilationOptions& Opts);
///\brief Parses the given input without calling the custom consumers and
///\brief Parses the given input without calling the custom consumers and
/// code generation.
///
/// I.e changes to the decls in the transaction commiting it will cause
/// I.e changes to the decls in the transaction commiting it will cause
/// different executable code.
///
///\param[in] input - The code to parse.
@ -239,7 +239,7 @@ namespace cling {
EParseResult ParseInternal(llvm::StringRef input);
///\brief Return true if this decl (which comes from an AST file) should
/// not be sent to CodeGen. The module is assumed to describe the contents
/// not be sent to CodeGen. The module is assumed to describe the contents
/// of a library; symbols inside the library must thus not be reemitted /
/// duplicated by CodeGen.
///

View File

@ -99,7 +99,7 @@ namespace cling {
}
void Interpreter::PushTransactionRAII::pop() const {
if (Transaction* T
if (Transaction* T
= m_Interpreter->m_IncrParser->endTransaction(m_Transaction)) {
assert(T == m_Transaction && "Ended different transaction?");
m_Interpreter->m_IncrParser->commitTransaction(T);
@ -499,7 +499,7 @@ namespace cling {
return Interpreter::kSuccess;
}
Interpreter::CompilationResult
Interpreter::CompilationResult
Interpreter::parse(const std::string& input, Transaction** T /*=0*/) const {
CompilationOptions CO;
CO.CodeGeneration = 0;
@ -518,7 +518,7 @@ namespace cling {
//Copied from clang's PPDirectives.cpp
bool isAngled = false;
// Clang doc says:
// "LookupFrom is set when this is a \#include_next directive, it specifies
// "LookupFrom is set when this is a \#include_next directive, it specifies
// the file to start searching from."
const DirectoryLookup* LookupFrom = 0;
const DirectoryLookup* CurDir = 0;
@ -535,7 +535,7 @@ namespace cling {
// Copied from PPDirectives.cpp
SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> path;
for (Module *mod = suggestedModule.getModule(); mod; mod = mod->Parent) {
IdentifierInfo* II
IdentifierInfo* II
= &getSema().getPreprocessor().getIdentifierTable().get(mod->Name);
path.push_back(std::make_pair(II, fileNameLoc));
}
@ -576,7 +576,7 @@ namespace cling {
clang::diag::MAP_IGNORE, SourceLocation());
return DeclareInternal(input, CO);
}
Interpreter::CompilationResult
Interpreter::declare(const std::string& input, Transaction** T/*=0 */) {
CompilationOptions CO;
@ -918,7 +918,7 @@ namespace cling {
}
Interpreter::CompilationResult
Interpreter::DeclareInternal(const std::string& input,
Interpreter::DeclareInternal(const std::string& input,
const CompilationOptions& CO,
Transaction** T /* = 0 */) const {
StateDebuggerRAII stateDebugger(this);
@ -929,7 +929,7 @@ namespace cling {
*T = lastT;
return Interpreter::kSuccess;
}
return Interpreter::kFailure;
return Interpreter::kFailure;
}
// Even if the transaction was empty it is still success.
@ -1082,17 +1082,17 @@ namespace cling {
bool ValuePrinterReq) {
Sema& TheSema = getCI()->getSema();
// The evaluation should happen on the global scope, because of the wrapper
// that is created.
// that is created.
//
// We can't PushDeclContext, because we don't have scope.
Sema::ContextRAII pushDC(TheSema,
Sema::ContextRAII pushDC(TheSema,
TheSema.getASTContext().getTranslationUnitDecl());
Value Result;
getCallbacks()->SetIsRuntime(true);
if (ValuePrinterReq)
echo(expr, &Result);
else
else
evaluate(expr, Result);
getCallbacks()->SetIsRuntime(false);

View File

@ -22,7 +22,7 @@ using namespace clang;
namespace cling {
///\brief Translates 'interesting' for the interpreter
///\brief Translates 'interesting' for the interpreter
/// ASTDeserializationListener events into interpreter callback.
///
class InterpreterPPCallbacks : public PPCallbacks {
@ -55,7 +55,7 @@ namespace cling {
}
};
///\brief Translates 'interesting' for the interpreter
///\brief Translates 'interesting' for the interpreter
/// ASTDeserializationListener events into interpreter callback.
///
class InterpreterDeserializationListener : public ASTDeserializationListener {
@ -75,7 +75,7 @@ namespace cling {
}
};
///\brief Translates 'interesting' for the interpreter ExternalSemaSource
///\brief Translates 'interesting' for the interpreter ExternalSemaSource
/// events into interpreter callbacks.
///
class InterpreterExternalSemaSource : public clang::ExternalSemaSource {
@ -91,7 +91,7 @@ namespace cling {
Sema* m_Sema; // we don't own // FIXME: once we remove ForgetSema delete.
public:
InterpreterExternalSemaSource(InterpreterCallbacks* C)
InterpreterExternalSemaSource(InterpreterCallbacks* C)
: m_Callbacks(C), m_Sema(0) {}
~InterpreterExternalSemaSource() {
@ -127,7 +127,7 @@ namespace cling {
virtual bool LookupUnqualified(clang::LookupResult& R, clang::Scope* S) {
if (m_Callbacks)
return m_Callbacks->LookupObject(R, S);
return false;
}
@ -145,7 +145,7 @@ namespace cling {
m_Callbacks->LookupObject(Tag);
}
void UpdateWithNewDeclsFwd(const DeclContext *DC, DeclarationName Name,
void UpdateWithNewDeclsFwd(const DeclContext *DC, DeclarationName Name,
llvm::ArrayRef<NamedDecl*> Decls) {
SetExternalVisibleDeclsForName(DC, Name, Decls);
}
@ -172,7 +172,7 @@ namespace cling {
bool enableDeserializationListenerCallbacks/* = false*/,
bool enablePPCallbacks/* = false*/)
: m_Interpreter(interp), m_IsRuntime(false) {
if (enableExternalSemaSourceCallbacks) {
m_ExternalSemaSource.reset(new InterpreterExternalSemaSource(this));
m_ExternalSemaSource->InitializeSema(interp->getSema());
@ -198,21 +198,21 @@ namespace cling {
// pin the vtable here
InterpreterCallbacks::~InterpreterCallbacks() {
// FIXME: we have to remove the external source at destruction time. Needs
// further tweaks of the patch in clang. This will be done later once the
// further tweaks of the patch in clang. This will be done later once the
// patch is in clang's mainline.
}
ExternalSemaSource*
ExternalSemaSource*
InterpreterCallbacks::getInterpreterExternalSemaSource() const {
return m_ExternalSemaSource.get();
}
ASTDeserializationListener*
ASTDeserializationListener*
InterpreterCallbacks::getInterpreterDeserializationListener() const {
return m_DeserializationListener.get();
}
bool InterpreterCallbacks::FileNotFound(llvm::StringRef FileName,
bool InterpreterCallbacks::FileNotFound(llvm::StringRef FileName,
llvm::SmallVectorImpl<char>& RecoveryPath) {
// Default implementation is no op.
return false;
@ -233,8 +233,8 @@ namespace cling {
return false;
}
void InterpreterCallbacks::UpdateWithNewDecls(const DeclContext *DC,
DeclarationName Name,
void InterpreterCallbacks::UpdateWithNewDecls(const DeclContext *DC,
DeclarationName Name,
llvm::ArrayRef<NamedDecl*> Decls) {
if (m_ExternalSemaSource)
m_ExternalSemaSource->UpdateWithNewDeclsFwd(DC, Name, Decls);
@ -330,7 +330,7 @@ namespace test {
/*TypeSourceInfo*/0, SC_None);
// Annotate the decl to give a hint in cling. FIXME: Current implementation
// is a gross hack, because TClingCallbacks shouldn't know about
// is a gross hack, because TClingCallbacks shouldn't know about
// EvaluateTSynthesizer at all!
SourceRange invalidRange;
Res->addAttr(new (C) AnnotateAttr(invalidRange, C, "__ResolveAtRuntime", 0));
@ -343,13 +343,13 @@ namespace test {
return false;
}
bool SymbolResolverCallback::ShouldResolveAtRuntime(LookupResult& R,
bool SymbolResolverCallback::ShouldResolveAtRuntime(LookupResult& R,
Scope* S) {
if (R.getLookupKind() != Sema::LookupOrdinaryName)
if (R.getLookupKind() != Sema::LookupOrdinaryName)
return false;
if (R.isForRedeclaration())
if (R.isForRedeclaration())
return false;
if (!R.empty())

View File

@ -396,7 +396,7 @@ namespace cling {
Parser& P = *m_Parser;
Sema& S = P.getActions();
Preprocessor& PP = S.getPreprocessor();
IdentifierInfo *dataII = &PP.getIdentifierTable().get(dataName);
DeclarationName decl_name( dataII );
@ -528,7 +528,7 @@ namespace cling {
QualType ClassType;
Expr::Classification ObjExprClassification;
if (CXXRecordDecl* CRD = dyn_cast<CXXRecordDecl>(foundDC)) {
if (objectIsConst)
if (objectIsConst)
ClassType = Context.getTypeDeclType(CRD).getCanonicalType().withConst();
else ClassType = Context.getTypeDeclType(CRD).getCanonicalType();
OpaqueValueExpr ObjExpr(SourceLocation(),
@ -645,7 +645,7 @@ namespace cling {
FuncNameInfo,
FuncTemplateArgs,
Context,P,S);
if (TheDecl) {
if ( IsOverload(Context, FuncTemplateArgs, GivenArgs, TheDecl) ) {
return 0;
@ -673,7 +673,7 @@ namespace cling {
Parser &P, Sema &S,
UnqualifiedId &FuncId,
LookupHelper::DiagSetting diagOnOff) {
// Use a very simple parse step that dectect whether the name search (which
// is already supposed to be an unqualified name) is a simple identifier,
// a constructor name or a destructor name. In those 3 cases, we can easily
@ -681,25 +681,25 @@ namespace cling {
// parse. By using this direct creation of the UnqualifiedId, we avoid the
// 'permanent' cost associated with creating a memory buffer and the
// associated FileID.
// If the name is a template or an operator, we revert to the regular parse
// (and its associated permanent cost).
// In the operator case, the additional work is in the case of a conversion
// operator where we would need to 'quickly' parse the type itself (if want
// to avoid the permanent cost).
// In the case with the template the problem gets a bit worse as we need to
// handle potentially arbitrary spaces and ordering
// ('const int' vs 'int const', etc.)
if (funcName.size() == 0) return false;
Preprocessor& PP = S.getPreprocessor();
// See if we can avoid creating the buffer, for now we just look for
// simple indentifier, constructor and destructor.
if (funcName.size() > 8 && strncmp(funcName.data(),"operator",8) == 0
&&( funcName[8] == ' ' || funcName[8] == '*'
|| funcName[8] == '%' || funcName[8] == '&'
@ -779,7 +779,7 @@ namespace cling {
PP.EnterSourceFile(FID, /*DirLookup=*/0, clang::SourceLocation());
PP.Lex(const_cast<clang::Token&>(P.getCurToken()));
}
//
// Parse the function name.
@ -796,7 +796,7 @@ namespace cling {
return true;
}
template <typename T>
T findFunction(DeclContext* foundDC, CXXScopeSpec &SS,
llvm::StringRef funcName,
@ -902,7 +902,7 @@ namespace cling {
//
// Create the array of Expr from the array of Types.
//
typedef llvm::SmallVectorImpl<QualType>::const_iterator iterator;
for(iterator iter = GivenTypes.begin(), end = GivenTypes.end();
iter != end;
@ -962,7 +962,7 @@ namespace cling {
}
for(unsigned int slot = 0; slot < nargs; ++slot) {
Expr* val = (OpaqueValueExpr*)( &ExprMemory[slot] );
GivenArgs.push_back(val);
GivenArgs.push_back(val);
}
if (P.getCurToken().isNot(tok::eof)) {
// We did not consume all of the prototype, bad parse.
@ -1171,7 +1171,7 @@ namespace cling {
return 0;
}
}
//
// Parse the prototype now.
//
@ -1184,7 +1184,7 @@ namespace cling {
overloadFunctionSelector,
diagOnOff);
}
const FunctionDecl* LookupHelper::findFunctionProto(const Decl* scopeDecl,
llvm::StringRef funcName,
llvm::StringRef funcProto,
@ -1294,7 +1294,7 @@ namespace cling {
Parser& P = *m_Parser;
Sema& S = P.getActions();
ASTContext& Context = S.getASTContext();
//
// Convert the passed decl into a nested name specifier,
// a scope spec, and a decl context.
@ -1305,8 +1305,8 @@ namespace cling {
CXXScopeSpec SS;
DeclContext* foundDC = getContextAndSpec(SS,scopeDecl,Context,S);
if (!foundDC) return 0;
llvm::SmallVector<ExprAlloc, 4> ExprMemory;
llvm::SmallVector<Expr*, 4> GivenArgs;
if (!funcProto.empty()) {
@ -1314,7 +1314,7 @@ namespace cling {
return 0;
}
}
//
// Parse the prototype now.
//
@ -1327,7 +1327,7 @@ namespace cling {
matchFunctionSelector,
diagOnOff);
}
static
bool ParseArgs(llvm::SmallVectorImpl<Expr*> &GivenArgs,
ASTContext& Context, Parser &P, Sema &S) {
@ -1437,7 +1437,7 @@ namespace cling {
// Some utilities.
//
// Use P for shortness
Parser& P = *m_Parser;
Parser& P = *m_Parser;
ParserStateRAII ResetParserState(P);
prepareForParsing(argList, llvm::StringRef("arg.list.file"), diagOnOff);
//

View File

@ -49,7 +49,7 @@ namespace cling {
}
bool isSingleStmt() const { return m_Stmts.size() == 1; }
clang::Stmt* getStmt() {
assert(isSingleStmt() && "Cannot get multiple stmts.");
return m_Stmts.front();
@ -66,7 +66,7 @@ namespace cling {
clang::SourceLocation noLoc;
return new (C) clang::CompoundStmt(C, stmts, noLoc, noLoc);
}
clang::Expr* getExpr() {
assert(llvm::isa<clang::Expr>(getStmt()) && "Must be an expression.");
return llvm::cast<clang::Expr>(getStmt());
@ -91,7 +91,7 @@ namespace cling {
std::map<clang::FunctionDecl*, std::bitset<32> > m_NonNullArgIndexs;
public:
IfStmtInjector(Sema& S) : m_Sema(S) {}
IfStmtInjector(Sema& S) : m_Sema(S) {}
CompoundStmt* Inject(CompoundStmt* CS) {
NodeContext result = VisitCompoundStmt(CS);
return cast<CompoundStmt>(result.getStmt());
@ -114,8 +114,8 @@ namespace cling {
}
llvm::ArrayRef<Stmt*> stmtsRef(stmts.data(), stmts.size());
CompoundStmt* newCS = new (C) CompoundStmt(C, stmtsRef,
CS->getLBracLoc(),
CompoundStmt* newCS = new (C) CompoundStmt(C, stmtsRef,
CS->getLBracLoc(),
CS->getRBracLoc());
return NodeContext(newCS);
}
@ -136,13 +136,13 @@ namespace cling {
NodeContext VisitBinaryOperator(BinaryOperator* BinOp) {
NodeContext result(BinOp);
// Here we might get if(check) throw; binop rhs.
NodeContext rhs = Visit(BinOp->getRHS());
// Here we might get if(check) throw; binop lhs.
NodeContext lhs = Visit(BinOp->getLHS());
// Prepend those checks. It will become:
// Prepend those checks. It will become:
// if(check_rhs) throw; if (check_lhs) throw; BinOp;
if (!rhs.isSingleStmt()) {
// FIXME:we need to loop from 0 to n-1
@ -158,7 +158,7 @@ namespace cling {
NodeContext VisitUnaryOperator(UnaryOperator* UnOp) {
NodeContext result(UnOp);
if (UnOp->getOpcode() == UO_Deref) {
result.prepend(SynthesizeCheck(UnOp->getLocStart(),
result.prepend(SynthesizeCheck(UnOp->getLocStart(),
UnOp->getSubExpr()));
}
return result;
@ -166,8 +166,8 @@ namespace cling {
NodeContext VisitMemberExpr(MemberExpr* ME) {
NodeContext result(ME);
if (ME->isArrow()) {
result.prepend(SynthesizeCheck(ME->getLocStart(),
if (ME->isArrow()) {
result.prepend(SynthesizeCheck(ME->getLocStart(),
ME->getBase()->IgnoreImplicit()));
}
return result;
@ -217,7 +217,7 @@ namespace cling {
Expr *args[] = {VoidSemaArg, VoidExprArg};
Scope* S = m_Sema.getScopeForContext(m_Sema.CurContext);
DeclarationName Name
DeclarationName Name
= &Context.Idents.get("cling__runtime__internal__throwNullDerefException");
SourceLocation noLoc;

View File

@ -21,7 +21,7 @@ namespace cling {
class NullDerefProtectionTransformer : public TransactionTransformer {
public:
///\ brief Constructs the NullDeref AST Transformer.
///

View File

@ -40,7 +40,7 @@ namespace cling {
m_State = kCollecting;
m_IssuedDiags = kNone;
m_Opts = CompilationOptions();
m_Module = 0;
m_Module = 0;
m_WrapperFD = 0;
m_Next = 0;
//m_Sema = S;
@ -50,7 +50,7 @@ namespace cling {
Transaction::~Transaction() {
if (hasNestedTransactions())
for (size_t i = 0; i < m_NestedTransactions->size(); ++i) {
assert(((*m_NestedTransactions)[i]->getState() == kCommitted
assert(((*m_NestedTransactions)[i]->getState() == kCommitted
|| (*m_NestedTransactions)[i]->getState() == kRolledBack)
&& "All nested transactions must be committed!");
delete (*m_NestedTransactions)[i];
@ -96,7 +96,7 @@ namespace cling {
}
void Transaction::reset() {
assert((empty() || getState() == kRolledBack)
assert((empty() || getState() == kRolledBack)
&& "The transaction must be empty.");
// When we unload we want to clear the containers.
if (!empty()) {
@ -115,7 +115,7 @@ namespace cling {
m_WrapperFD = 0;
m_Next = 0;
}
void Transaction::append(DelayCallInfo DCI) {
assert(!DCI.m_DGR.isNull() && "Appending null DGR?!");
assert(getState() == kCollecting
@ -134,9 +134,9 @@ namespace cling {
// Check for duplicates
for (size_t i = 0, e = m_DeclQueue.size(); i < e; ++i) {
DelayCallInfo &oldDCI (m_DeclQueue[i]);
// FIXME: This is possible bug in clang, which will instantiate one and
// FIXME: This is possible bug in clang, which will instantiate one and
// the same CXXStaticMemberVar several times. This happens when there are
// two dependent expressions and the first uses another declaration from
// two dependent expressions and the first uses another declaration from
// the redeclaration chain. This will force Sema in to instantiate the
// definition (usually the most recent decl in the chain) and then the
// second expression might referece the definition (which was already)
@ -149,7 +149,7 @@ namespace cling {
continue;
// It is possible to have duplicate calls to HandleVTable with the same
// declaration, because each time Sema believes a vtable is used it emits
// that callback.
// that callback.
// For reference (clang::CodeGen::CodeGenModule::EmitVTable).
if (oldDCI.m_Call != kCCIHandleVTable)
assert(oldDCI != DCI && "Duplicates?!");
@ -157,7 +157,7 @@ namespace cling {
// We want to assert there is only one wrapper per transaction.
checkForWrapper = true;
#endif
// register the wrapper if any.
if (checkForWrapper && !DCI.m_DGR.isNull() && DCI.m_DGR.isSingleDecl()) {
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(DCI.m_DGR.getSingleDecl())){
@ -167,7 +167,7 @@ namespace cling {
}
}
}
if (comesFromASTReader(DCI.m_DGR))
m_DeserializedDeclQueue.push_back(DCI);
else
@ -218,10 +218,10 @@ namespace cling {
print(llvm::errs(), Policy, /*Indent*/0, /*PrintInstantiation*/true);
}
void Transaction::DelayCallInfo::print(llvm::raw_ostream& Out,
void Transaction::DelayCallInfo::print(llvm::raw_ostream& Out,
const PrintingPolicy& Policy,
unsigned Indent,
bool PrintInstantiation,
unsigned Indent,
bool PrintInstantiation,
llvm::StringRef prependInfo /*=""*/) const {
static const char* const stateNames[Transaction::kCCINumStates] = {
"kCCINone",
@ -233,7 +233,7 @@ namespace cling {
"kCCIHandleCXXStaticMemberVarInstantiation",
"kCCICompleteTentativeDefinition",
};
assert((sizeof(stateNames) /sizeof(void*)) == Transaction::kCCINumStates
assert((sizeof(stateNames) /sizeof(void*)) == Transaction::kCCINumStates
&& "Missing states?");
if (!prependInfo.empty()) {
Out.changeColor(llvm::raw_ostream::RED);
@ -242,11 +242,11 @@ namespace cling {
Out << ", ";
}
Out.changeColor(llvm::raw_ostream::BLUE);
Out << stateNames[m_Call];
Out << stateNames[m_Call];
Out.changeColor(llvm::raw_ostream::GREEN);
Out << " <- ";
Out.resetColor();
for (DeclGroupRef::const_iterator I = m_DGR.begin(), E = m_DGR.end();
for (DeclGroupRef::const_iterator I = m_DGR.begin(), E = m_DGR.end();
I != E; ++I) {
if (*I)
(*I)->print(Out, Policy, Indent, PrintInstantiation);
@ -319,11 +319,11 @@ namespace cling {
"RolledBackWithErrors",
"Committed"
};
assert((sizeof(stateNames) / sizeof(void*)) == kNumStates
assert((sizeof(stateNames) / sizeof(void*)) == kNumStates
&& "Missing a state to print.");
std::string indent(nindent, ' ');
llvm::errs() << indent << "Transaction @" << this << ": \n";
for (const_nested_iterator I = nested_begin(), E = nested_end();
for (const_nested_iterator I = nested_begin(), E = nested_end();
I != E; ++I) {
(*I)->printStructure(nindent + 3);
}
@ -342,12 +342,12 @@ namespace cling {
void Transaction::printStructureBrief(size_t nindent /*=0*/) const {
std::string indent(nindent, ' ');
llvm::errs() << indent << "<cling::Transaction* " << this
llvm::errs() << indent << "<cling::Transaction* " << this
<< " isEmpty=" << empty();
llvm::errs() << " isCommitted=" << (getState() == kCommitted);
llvm::errs() <<"> \n";
for (const_nested_iterator I = nested_begin(), E = nested_end();
for (const_nested_iterator I = nested_begin(), E = nested_end();
I != E; ++I) {
llvm::errs() << indent << "`";
(*I)->printStructureBrief(nindent + 3);

View File

@ -51,7 +51,7 @@ namespace cling {
void setTransaction(Transaction* T) { m_Transaction = T; }
///\brief The method that does the transformation of a transaction into
///\brief The method that does the transformation of a transaction into
/// another. If forwards to the protected virtual Transform method, which
/// does the actual transformation.
///

View File

@ -329,7 +329,7 @@ namespace clang {
///
bool VisitTagDecl(TagDecl* TD);
///\brief Removes a RecordDecl. We shouldn't remove the implicit class
///\brief Removes a RecordDecl. We shouldn't remove the implicit class
/// declaration.
///\param[in] RD - The declaration to be removed.
///
@ -348,7 +348,7 @@ namespace clang {
///@name Templates
///@{
///\brief Removes template from the redecl chain. Templates are
///\brief Removes template from the redecl chain. Templates are
/// redeclarables also.
/// @param[in] R - The declaration to be removed.
///
@ -396,7 +396,7 @@ namespace clang {
/// MacroDirective to forward.
///\returns true on success.
///
bool UnloadMacro(Transaction::MacroDirectiveInfo MD) {
bool UnloadMacro(Transaction::MacroDirectiveInfo MD) {
return VisitMacro(MD);
}
@ -436,7 +436,7 @@ namespace clang {
// in the lookup table. My assumption is that the DeclUnloader
// adds it here. This needs to be investigated mode. For now
// std::find gets promoted from assert to condition :)
if (*I == ND && std::find(decls.begin(), decls.end(),
if (*I == ND && std::find(decls.begin(), decls.end(),
PrevDecls[0]) == decls.end()) {
// The decl was registered in the lookup, update it.
*I = PrevDecls[0];
@ -488,7 +488,7 @@ namespace clang {
const SourceManager& SM = m_Sema->getSourceManager();
FileID FID = SM.getFileID(SM.getSpellingLoc(Loc));
if (!FID.isInvalid() && FID >= m_CurTransaction->getBufferFID()
&& !m_FilesToUncache.count(FID))
&& !m_FilesToUncache.count(FID))
m_FilesToUncache.insert(FID);
}
@ -544,7 +544,7 @@ namespace clang {
if (*I == ND)
Pos->second.remove(ND);
}
if (Pos->second.isNull() ||
if (Pos->second.isNull() ||
(Pos->second.getAsVector() && !Pos->second.getAsVector()->size()))
Map->erase(Pos);
}
@ -614,7 +614,7 @@ namespace clang {
// * mangled names for parameters;
if (!isa<ParmVarDecl>(VD) && !VD->getDeclContext()->isDependentContext()) {
// Cleanup the module if the transaction was committed and code was
// generated. This has to go first, because it may need the AST
// generated. This has to go first, because it may need the AST
// information which we will remove soon. (Eg. mangleDeclName iterates the
// redecls)
GlobalDecl GD(VD);
@ -848,17 +848,17 @@ namespace clang {
/// C::C c; // same as "C c;"
/// \endcode
// It is another question why it is on the redecl chain.
// The test show it can be either:
// The test show it can be either:
// ... <- InjectedC <- C <- ..., i.e previous decl or
// ... <- C <- InjectedC <- ...
RecordDecl* InjectedRD = RD->getPreviousDecl();
if (!(InjectedRD && InjectedRD->isInjectedClassName())) {
InjectedRD = RD->getMostRecentDecl();
while (InjectedRD) {
if (InjectedRD->isInjectedClassName()
if (InjectedRD->isInjectedClassName()
&& InjectedRD->getPreviousDecl() == RD)
break;
InjectedRD = InjectedRD->getPreviousDecl();
InjectedRD = InjectedRD->getPreviousDecl();
}
}
@ -973,7 +973,7 @@ namespace clang {
bool Successful = true;
// Remove specializations:
for (FunctionTemplateDecl::spec_iterator I = FTD->spec_begin(),
for (FunctionTemplateDecl::spec_iterator I = FTD->spec_begin(),
E = FTD->spec_end(); I != E; ++I)
Successful &= Visit(*I);
@ -986,7 +986,7 @@ namespace clang {
// ClassTemplateDecl: TemplateDecl, Redeclarable
bool Successful = true;
// Remove specializations:
for (ClassTemplateDecl::spec_iterator I = CTD->spec_begin(),
for (ClassTemplateDecl::spec_iterator I = CTD->spec_begin(),
E = CTD->spec_end(); I != E; ++I)
Successful &= Visit(*I);
@ -1157,7 +1157,7 @@ namespace cling {
const DeclGroupRef& DGR = (*I).m_DGR;
for (DeclGroupRef::const_iterator
Di = DGR.end() - 1, E = DGR.begin() - 1; Di != E; --Di) {
// We only want to revert all that came through parseForModule, and
// We only want to revert all that came through parseForModule, and
// not the PCH.
if (!(*Di)->isFromASTFile())
Successful = DeclU.UnloadDecl(*Di) && Successful;

View File

@ -91,7 +91,7 @@ namespace cling {
if (RS) {
// When we are handling a return stmt, the last expression must be the
// return stmt value. Ignore the calculation of the lastStmt because it
// might be wrong, in cases where the return is not in the end of the
// might be wrong, in cases where the return is not in the end of the
// function.
lastExpr = RS->getRetValue();
if (lastExpr) {

View File

@ -27,7 +27,7 @@ namespace cling {
///\brief Needed for the AST transformations, owned by Sema.
///
clang::ASTContext* m_Context;
///\brief cling::runtime::gCling variable cache.
///
clang::VarDecl* m_gClingVD;
@ -83,7 +83,7 @@ public:
///
clang::Expr* SynthesizeSVRInit(clang::Expr* E);
// Find and cache cling::runtime::gCling, setValueNoAlloc,
// Find and cache cling::runtime::gCling, setValueNoAlloc,
// setValueWithAlloc on first request.
void FindAndCacheRuntimeDecls();
};

View File

@ -30,12 +30,12 @@ using namespace clang;
namespace cling {
ValuePrinterSynthesizer::ValuePrinterSynthesizer(clang::Sema* S,
ValuePrinterSynthesizer::ValuePrinterSynthesizer(clang::Sema* S,
llvm::raw_ostream* Stream)
: TransactionTransformer(S), m_Context(&S->getASTContext()) {
if (Stream)
m_ValuePrinterStream.reset(Stream);
else
else
m_ValuePrinterStream.reset(new llvm::raw_os_ostream(std::cout));
}
@ -45,7 +45,7 @@ namespace cling {
{ }
void ValuePrinterSynthesizer::Transform() {
if (getTransaction()->getCompilationOpts().ValuePrinting
if (getTransaction()->getCompilationOpts().ValuePrinting
== CompilationOptions::VPDisabled)
return;
@ -61,7 +61,7 @@ namespace cling {
// 2: Expression printing auto - analyze - rely on the omitted ';' to
// not produce the suppress marker.
int indexOfLastExpr = -1;
Expr* To = utils::Analyze::GetOrCreateLastExpr(FD, &indexOfLastExpr,
Expr* To = utils::Analyze::GetOrCreateLastExpr(FD, &indexOfLastExpr,
/*omitDS*/false,
m_Sema);
if (To) {
@ -101,7 +101,7 @@ namespace cling {
// Strip the parenthesis if any
if (ParenExpr* PE = dyn_cast<ParenExpr>(To))
To = PE->getSubExpr();
Expr* Result = 0;
// if (!m_Sema->getLangOpts().CPlusPlus)
// Result = SynthesizeVP(To);
@ -149,10 +149,10 @@ namespace cling {
= m_Sema->BuildDeclarationNameExpr(CSS, R, /*ADL*/ false).take();
Expr* VoidEArg = utils::Synthesize::CStyleCastPtrExpr(m_Sema,
Expr* VoidEArg = utils::Synthesize::CStyleCastPtrExpr(m_Sema,
m_Context->VoidPtrTy,
(uint64_t)E);
Expr* VoidCArg = utils::Synthesize::CStyleCastPtrExpr(m_Sema,
Expr* VoidCArg = utils::Synthesize::CStyleCastPtrExpr(m_Sema,
m_Context->VoidPtrTy,
(uint64_t)m_Context);

View File

@ -46,7 +46,7 @@ public:
///\param[in] Stream - The output stream where the value printer will write
/// to. Defaults to std::cout. Owns the stream.
ValuePrinterSynthesizer(clang::Sema* S, llvm::raw_ostream* Stream);
virtual ~ValuePrinterSynthesizer();
virtual void Transform();
@ -58,7 +58,7 @@ public:
///\param[in] FD - wrapper function that the value printer will attached to.
///
///\returns true if the attachment was considered as success. I.e. even if
/// even if the value printer wasn't attached because of the compilation
/// even if the value printer wasn't attached because of the compilation
/// options disallowint it - it will return still true. Returns false on
/// critical error.
bool tryAttachVP(clang::FunctionDecl* FD);

View File

@ -72,14 +72,14 @@ bool HasUDT(const Decl* decl)
int NumberOfElements(const ArrayType* type)
{
assert(type != 0 && "NumberOfElements, 'type' parameter is null");
if (const ConstantArrayType* const arrayType = dyn_cast<ConstantArrayType>(type)) {
//We can calculate only the size of constant size array.
//no conv. to int :(
const int nElements = int(arrayType->getSize().roundToDouble());
if (nElements <= 0)
return 0;
if (const Type* elementType = arrayType->getElementType().getTypePtr()) {
if (const ArrayType* subArrayType = elementType->getAsArrayTypeUnsafe())
return nElements* NumberOfElements(subArrayType);
@ -102,7 +102,7 @@ void AppendClassDeclLocation(const CompilerInstance* compiler, const CXXRecordDe
const char* const emptyName = "";
llvm::raw_string_ostream rss(textLine);
llvm::formatted_raw_ostream frss(rss);
if (compiler->hasSourceManager()) {
const SourceManager &sourceManager = compiler->getSourceManager();
PresumedLoc loc(sourceManager.getPresumedLoc(classDecl->getLocation()));
@ -168,11 +168,11 @@ void AppendMacroLocation(const CompilerInstance* compiler, const MacroInfo* macr
//TODO: check what does location for macro definition really means -
//macro can be defined many times, what do we have in a TranslationUnit in this case?
//At the moment this function is similar to AppendDeclLocation.
const char* const unknownLocation = "(unknown)";
llvm::raw_string_ostream rss(textLine);
llvm::formatted_raw_ostream frss(rss);
if (compiler->hasSourceManager()) {
const SourceManager &sourceManager = compiler->getSourceManager();
PresumedLoc loc(sourceManager.getPresumedLoc(macroInfo->getDefinitionLoc()));
@ -214,7 +214,7 @@ void AppendClassName(const CXXRecordDecl* classDecl, std::string& name)
void AppendMemberAccessSpecifier(const Decl* memberDecl, std::string& name)
{
assert(memberDecl != 0 && "AppendMemberAccessSpecifier, 'memberDecl' parameter is 0");
switch (memberDecl->getAccess()) {
case AS_private:
name += "private:";
@ -225,7 +225,7 @@ void AppendMemberAccessSpecifier(const Decl* memberDecl, std::string& name)
case AS_public:
case AS_none://Public or private?
name += "public:";
}
}
}
//______________________________________________________________________________
@ -245,10 +245,10 @@ void AppendConstructorSignature(const CXXConstructorDecl* ctorDecl, std::string&
name += ctorDecl->getNameInfo().getAsString();
name += "(";
if (ft) {
llvm::raw_string_ostream stream(name);
for (unsigned i = 0, e = ctorDecl->getNumParams(); i != e; ++i) {
if (i)
stream << ", ";
@ -321,7 +321,7 @@ void AppendClassSize(const CompilerInstance* compiler, const RecordDecl* decl,
{
assert(compiler != 0 && "AppendClassSize, 'compiler' parameter is null");
assert(decl != 0 && "AppendClassSize, 'decl' parameter is null");
if (dyn_cast<ClassTemplatePartialSpecializationDecl>(decl)) {
textLine += "SIZE: (NA)";
return;
@ -340,13 +340,13 @@ void AppendUDTSize(const CompilerInstance* compiler, const Decl* decl, std::stri
{
assert(compiler != 0 && "AppendUDTSize, 'compiler' parameter is null");
assert(decl != 0 && "AppendUDTSize, 'decl' parameter is null");
std::string formatted;
{
llvm::raw_string_ostream rss(formatted);
llvm::formatted_raw_ostream frss(rss);
if (const RecordType* const recordType = decl->getType()->template getAs<RecordType>()) {
if (const RecordDecl* const recordDecl = cast_or_null<RecordDecl>(recordType->getDecl()->getDefinition())) {
const ASTRecordLayout& layout = compiler->getASTContext().getASTRecordLayout(recordDecl);
@ -363,9 +363,9 @@ void AppendUDTSize(const CompilerInstance* compiler, const Decl* decl, std::stri
}
}
}
}
formatted.length() ? textLine += formatted : textLine += "NA";
}
@ -397,7 +397,7 @@ void AppendDataMemberOffset(const CompilerInstance* compiler, const CXXRecordDec
assert(fieldDecl != 0 && "AppendDataMemberOffset, 'fieldDecl' parameter is null");
const ASTRecordLayout& layout = compiler->getASTContext().getASTRecordLayout(classDecl);
std::string formatted;
//
llvm::raw_string_ostream rss(textLine);
@ -453,7 +453,7 @@ public:
void DisplayClass(const std::string& className)const;
void SetVerbose(bool verbose);
void Reset();
private:
@ -468,7 +468,7 @@ private:
void ProcessLinkageSpecDecl(decl_iterator decl)const;
void ProcessClassDecl(decl_iterator decl)const;
void ProcessClassTemplateDecl(decl_iterator decl)const;
template<class Decl>
void ProcessTypeOfMember(const Decl* decl, unsigned nSpaces)const
{
@ -546,10 +546,10 @@ void ClassPrinter::DisplayClass(const std::string& className)const
if (const CXXRecordDecl* const classDecl = dyn_cast<CXXRecordDecl>(decl)) {
if (classDecl->hasDefinition())
DisplayClassDecl(classDecl);
else
fOut.Print(("The class " + className +
else
fOut.Print(("The class " + className +
" does not have any definition available\n").c_str());
} else
} else
fOut.Print(("A " + std::string(decl->getDeclKindName()) + " declaration"
" was found for " + className + "\n").c_str());
} else
@ -718,7 +718,7 @@ void ClassPrinter::ProcessClassTemplateDecl(decl_iterator decl)const
// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(fInterpreter));
//Now we have to display all the specialization (/instantiations)
for (ClassTemplateDecl::spec_iterator spec = templateDecl->spec_begin();
for (ClassTemplateDecl::spec_iterator spec = templateDecl->spec_begin();
spec != templateDecl->spec_end(); ++spec)
ProcessDecl(decl_iterator( *spec ));
}
@ -779,10 +779,10 @@ void ClassPrinter::DisplayClassDecl(const CXXRecordDecl* classDecl)const
DisplayBasesAsTree(classDecl, 0);
//now list all members.40963410
fOut.Print("List of member variables --------------------------------------------------\n");
DisplayDataMembers(classDecl, 0);
fOut.Print("List of member functions :---------------------------------------------------\n");
//CINT has a format like %-15s blah-blah.
fOut.Print("filename line:size busy function type and name\n");
@ -919,7 +919,7 @@ void ClassPrinter::DisplayMemberFunctions(const CXXRecordDecl* classDecl)const
for (ctor_iterator ctor = classDecl->ctor_begin(); ctor != classDecl->ctor_end(); ++ctor) {
if (ctor->isImplicit())//Compiler-generated.
continue;
textLine.clear();
AppendMemberFunctionLocation(fInterpreter->getCI(), *ctor, textLine);
textLine += ' ';
@ -933,10 +933,10 @@ void ClassPrinter::DisplayMemberFunctions(const CXXRecordDecl* classDecl)const
for (method_iterator method = classDecl->method_begin(); method != classDecl->method_end(); ++method) {
if (method->getKind() == Decl::CXXConstructor)
continue;
if (method->isImplicit())//Compiler-generated.
continue;
textLine.clear();
AppendMemberFunctionLocation(fInterpreter->getCI(), *method, textLine);
textLine += ' ';
@ -946,14 +946,14 @@ void ClassPrinter::DisplayMemberFunctions(const CXXRecordDecl* classDecl)const
textLine += ";\n";
fOut.Print(textLine.c_str());
}
//Now, the problem: template member-functions are not in the list of methods.
//I have to additionally scan class declarations.
for (decl_iterator decl = classDecl->decls_begin(); decl != classDecl->decls_end(); ++decl) {
if (decl->getKind() == Decl::FunctionTemplate) {
const FunctionTemplateDecl* const ftDecl = dyn_cast<FunctionTemplateDecl>(*decl);
assert(ftDecl != 0 && "DisplayMemberFunctions, decl is not a function template");
textLine.clear();
AppendMemberFunctionLocation(fInterpreter->getCI(), *decl, textLine);
textLine += ' ';
@ -1036,10 +1036,10 @@ void ClassPrinter::DisplayDataMembers(const CXXRecordDecl* classDecl, unsigned n
AppendDeclLocation(fInterpreter->getCI(), *enumerator, textLine);
textLine += gap;
textLine += "0x0 ";//offset is meaningless.
AppendMemberAccessSpecifier(*enumerator, textLine);
textLine += ' ';
//{//Block to force flush for stream.
//{//Block to force flush for stream.
//llvm::raw_string_ostream stream(textLine);
const QualType type(enumerator->getType());
//const LangOptions lo;
@ -1094,7 +1094,7 @@ public:
void DisplayGlobal(const std::string& name)const;
private:
void DisplayVarDecl(const VarDecl* varDecl)const;
void DisplayEnumeratorDecl(const EnumConstantDecl* enumerator)const;
void DisplayObjectLikeMacro(const IdentifierInfo* identifierInfo, const MacroInfo* macroInfo)const;
@ -1120,7 +1120,7 @@ void GlobalsPrinter::DisplayGlobals()const
typedef Preprocessor::macro_iterator macro_iterator;
assert(fInterpreter != 0 && "DisplayGlobals, fInterpreter is null");
const CompilerInstance* const compiler = fInterpreter->getCI();
assert(compiler != 0 && "DisplayGlobals, compiler instance is null");
@ -1161,20 +1161,20 @@ void GlobalsPrinter::DisplayGlobal(const std::string& name)const
{
typedef EnumDecl::enumerator_iterator enumerator_iterator;
typedef Preprocessor::macro_iterator macro_iterator;
//TODO: is it ok to compare 'name' with decl->getNameAsString() ??
assert(fInterpreter != 0 && "DisplayGlobal, fInterpreter is null");
const CompilerInstance* const compiler = fInterpreter->getCI();
assert(compiler != 0 && "DisplayGlobal, compiler instance is null");
const TranslationUnitDecl* const tuDecl = compiler->getASTContext().getTranslationUnitDecl();
assert(tuDecl != 0 && "DisplayGlobal, translation unit is empty");
//fSeenDecls.clear();
bool found = false;
// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(fInterpreter));
const Preprocessor& pp = compiler->getPreprocessor();
@ -1187,7 +1187,7 @@ void GlobalsPrinter::DisplayGlobal(const std::string& name)const
}
}
}
for (decl_iterator decl = tuDecl->decls_begin(); decl != tuDecl->decls_end(); ++decl) {
if (const VarDecl* const varDecl = dyn_cast<VarDecl>(*decl)) {
if (varDecl->getNameAsString() == name) {
@ -1218,12 +1218,12 @@ void GlobalsPrinter::DisplayVarDecl(const VarDecl* varDecl) const
{
assert(fInterpreter != 0 && "DisplayVarDecl, fInterpreter is null");
assert(varDecl != 0 && "DisplayVarDecl, 'varDecl' parameter is null");
const LangOptions langOpts;
PrintingPolicy printingPolicy(langOpts);
printingPolicy.SuppressSpecifiers = false;
printingPolicy.SuppressInitializers = false;
std::string textLine;
AppendDeclLocation(fInterpreter->getCI(), varDecl, textLine);
@ -1234,12 +1234,12 @@ void GlobalsPrinter::DisplayVarDecl(const VarDecl* varDecl) const
textLine += " (address: NA) ";
AppendObjectDeclaration(varDecl, printingPolicy, false, textLine);
if (HasUDT(varDecl)) {
textLine += ", size = ";
AppendUDTSize(fInterpreter->getCI(), varDecl, textLine);
}
textLine += "\n";
fOut.Print(textLine.c_str());
}
@ -1253,11 +1253,11 @@ void GlobalsPrinter::DisplayEnumeratorDecl(const EnumConstantDecl* enumerator)co
const LangOptions langOpts;
PrintingPolicy printingPolicy(langOpts);
printingPolicy.SuppressInitializers = false;
std::string textLine;
AppendDeclLocation(fInterpreter->getCI(), enumerator, textLine);
textLine += " (address: NA) ";//No address, that's an enumerator.
const QualType type(enumerator->getType());
@ -1265,7 +1265,7 @@ void GlobalsPrinter::DisplayEnumeratorDecl(const EnumConstantDecl* enumerator)co
textLine += ' ';
AppendObjectDeclaration(enumerator, printingPolicy, false, textLine);
textLine += "\n";
fOut.Print(textLine.c_str());
}
@ -1278,24 +1278,24 @@ void GlobalsPrinter::DisplayObjectLikeMacro(const IdentifierInfo* identifierInfo
assert(macroInfo != 0 && "DisplayObjectLikeMacro, 'macroInfo' parameter is null");
std::string textLine;
AppendMacroLocation(fInterpreter->getCI(), macroInfo, textLine);
textLine += " (address: NA) #define ";//No address exists for a macro definition.
textLine += identifierInfo->getName().data();
if (macroInfo->getNumTokens())
textLine += " =";
assert(fInterpreter->getCI() != 0 && "DisplayObjectLikeMacro, compiler instance is null");
const Preprocessor &pp = fInterpreter->getCI()->getPreprocessor();
for (unsigned i = 0, e = macroInfo->getNumTokens(); i < e; ++i) {
textLine += ' ';
textLine += pp.getSpelling(macroInfo->getReplacementToken(i));
}
fOut.Print(textLine.c_str());
fOut.Print("\n");
}
@ -1304,7 +1304,7 @@ void GlobalsPrinter::DisplayObjectLikeMacro(const IdentifierInfo* identifierInfo
class NamespacePrinter {
public:
NamespacePrinter(llvm::raw_ostream& stream, const Interpreter* interpreter);
void Print()const;
private:
@ -1362,12 +1362,12 @@ void NamespacePrinter::ProcessNamespaceDeclaration(decl_iterator declIt,
if (enclosingNamespaceName.length())
name += "::";
name += nsDecl->getNameAsString();
if (nsDecl->isOriginalNamespace()) {
fOut.Print(name.c_str());
fOut.Print("\n");
}
if (const auto ctx = dyn_cast<DeclContext>(*declIt)) {
for (auto it = ctx->decls_begin(), eIt = ctx->decls_end(); it != eIt; ++it) {
if (it->getKind() == Decl::Namespace ||
@ -1419,7 +1419,7 @@ TypedefPrinter::TypedefPrinter(llvm::raw_ostream& stream, const Interpreter* int
void TypedefPrinter::DisplayTypedefs()const
{
assert(fInterpreter != 0 && "DisplayTypedefs, fInterpreter is null");
const CompilerInstance* const compiler = fInterpreter->getCI();
assert(compiler != 0 && "DisplayTypedefs, compiler instance is null");
@ -1436,7 +1436,7 @@ void TypedefPrinter::DisplayTypedefs()const
void TypedefPrinter::DisplayTypedef(const std::string& typedefName)const
{
assert(fInterpreter != 0 && "DisplayTypedef, fInterpreter is null");
const cling::LookupHelper &lookupHelper = fInterpreter->getLookupHelper();
const QualType type
= lookupHelper.findType(typedefName, cling::LookupHelper::NoDiagnostics);
@ -1446,10 +1446,10 @@ void TypedefPrinter::DisplayTypedef(const std::string& typedefName)const
if (typedefType->getDecl()) {
DisplayTypedefDecl(typedefType->getDecl());
return;
} else
} else
fOut.Print(("A " + std::string(type->getTypeClassName()) + " declaration"
" was found for " + typedefName + "\n").c_str());
}
}
@ -1493,16 +1493,16 @@ void TypedefPrinter::ProcessDecl(decl_iterator decl)const
if (FunctionDecl * const funDecl = dyn_cast<FunctionDecl>(*decl))
ProcessNestedDeclarations(funDecl);
break;
}
}
}
//______________________________________________________________________________
void TypedefPrinter::DisplayTypedefDecl(TypedefNameDecl* typedefDecl)const
{
assert(typedefDecl != 0
assert(typedefDecl != 0
&& "DisplayTypedefDecl, parameter 'typedefDecl' is null");
assert(fInterpreter != 0 && "DisplayTypedefDecl, fInterpreter is null");
std::string textLine;
AppendDeclLocation(fInterpreter->getCI(), typedefDecl, textLine);
@ -1519,7 +1519,7 @@ void TypedefPrinter::DisplayTypedefDecl(TypedefNameDecl* typedefDecl)const
getDesugaredType(typedefDecl->getASTContext()).print(out,printingPolicy);
//Name for diagnostic will include template arguments if any.
typedefDecl->getNameForDiagnostic(out,
printingPolicy,/*qualified=*/true);
printingPolicy,/*qualified=*/true);
}
fOut.Print(textLine.c_str());
@ -1548,7 +1548,7 @@ void DisplayClass(llvm::raw_ostream& stream, const Interpreter* interpreter,
while (std::isspace(*className))
++className;
ClassPrinter printer(stream, interpreter);
if (*className) {
@ -1565,7 +1565,7 @@ void DisplayNamespaces(llvm::raw_ostream &stream, const Interpreter *interpreter
{
assert(interpreter != 0 && "DisplayNamespaces, parameter 'interpreter' is null");
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(interpreter));
NamespacePrinter printer(stream, interpreter);
Interpreter::PushTransactionRAII guard(const_cast<Interpreter *>(interpreter));
printer.Print();
@ -1575,7 +1575,7 @@ void DisplayNamespaces(llvm::raw_ostream &stream, const Interpreter *interpreter
void DisplayGlobals(llvm::raw_ostream& stream, const Interpreter* interpreter)
{
assert(interpreter != 0 && "DisplayGlobals, 'interpreter' parameter is null");
GlobalsPrinter printer(stream, interpreter);
// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(interpreter));
@ -1587,7 +1587,7 @@ void DisplayGlobal(llvm::raw_ostream& stream, const Interpreter* interpreter,
const std::string& name)
{
assert(interpreter != 0 && "DisplayGlobal, 'interpreter' parameter is null");
GlobalsPrinter printer(stream, interpreter);
// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(interpreter));
@ -1598,7 +1598,7 @@ void DisplayGlobal(llvm::raw_ostream& stream, const Interpreter* interpreter,
void DisplayTypedefs(llvm::raw_ostream &stream, const Interpreter *interpreter)
{
assert(interpreter != 0 && "DisplayTypedefs, parameter 'interpreter' is null");
TypedefPrinter printer(stream, interpreter);
// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(const_cast<Interpreter*>(interpreter));
@ -1610,7 +1610,7 @@ void DisplayTypedef(llvm::raw_ostream &stream, const Interpreter *interpreter,
const std::string &name)
{
assert(interpreter != 0 && "DisplayTypedef, parameter 'interpreter' is null");
TypedefPrinter printer(stream, interpreter);
printer.DisplayTypedef(name);
}

View File

@ -21,20 +21,20 @@ class Interpreter;
void DisplayClasses(llvm::raw_ostream &stream,
const Interpreter *interpreter, bool verbose);
void DisplayClass(llvm::raw_ostream &stream,
const Interpreter *interpreter, const char *className,
void DisplayClass(llvm::raw_ostream &stream,
const Interpreter *interpreter, const char *className,
bool verbose);
void DisplayNamespaces(llvm::raw_ostream &stream, const Interpreter *interpreter);
void DisplayGlobals(llvm::raw_ostream &stream, const Interpreter *interpreter);
void DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter,
void DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter,
const std::string &name);
void DisplayTypedefs(llvm::raw_ostream &stream, const Interpreter *interpreter);
void DisplayTypedef(llvm::raw_ostream &stream, const Interpreter *interpreter,
const std::string &name);
}
#endif

View File

@ -22,7 +22,7 @@ namespace cling {
MetaLexer::LexPunctuatorAndAdvance(curPos, Tok);
int kind = (int)Tok.getKind();
// If there is " or ' we don't need to look for balancing until we
// If there is " or ' we don't need to look for balancing until we
// enounter matching " or '
if (kind >= (int)tok::quote && kind <= (int)tok::apostrophe) {
MetaLexer::LexQuotedStringAndAdvance(curPos, Tok);
@ -49,7 +49,7 @@ namespace cling {
break;
}
m_ParenStack.pop();
}
}
else
m_ParenStack.push(kind);
}
@ -60,10 +60,10 @@ namespace cling {
Res = kIncomplete;
if (!m_Input.empty()) {
if (!m_ParenStack.empty() && (m_ParenStack.top() == tok::quote
if (!m_ParenStack.empty() && (m_ParenStack.top() == tok::quote
|| m_ParenStack.top() == tok::apostrophe))
m_Input.append("\\n");
else
else
m_Input.append("\n");
}
else

View File

@ -36,8 +36,8 @@ namespace cling {
return value;
}
MetaLexer::MetaLexer(llvm::StringRef line)
: bufferStart(line.data()), curPos(line.data())
MetaLexer::MetaLexer(llvm::StringRef line)
: bufferStart(line.data()), curPos(line.data())
{ }
void MetaLexer::Lex(Token& Tok) {
@ -50,7 +50,7 @@ namespace cling {
// INTENTIONAL FALL THROUGHs
return LexPunctuator(C, Tok);
case '/':
case '/':
if (*curPos != '/')
return LexPunctuator(C, Tok);
else {
@ -153,7 +153,7 @@ namespace cling {
Tok.startToken(curPos);
while (true) {
bool escape = false;
while ( (escape || *curPos != start)
while ( (escape || *curPos != start)
&& *curPos != '\0' && *curPos != '\r' && *curPos != '\n') {
escape = ( (*curPos) == '\\' );
++curPos;

View File

@ -78,7 +78,7 @@ namespace cling {
const char* bufferEnd;
const char* curPos;
public:
MetaLexer(const char* bufStart)
MetaLexer(const char* bufStart)
: bufferStart(bufStart), curPos(bufStart)
{ }
MetaLexer(llvm::StringRef input);
@ -96,7 +96,7 @@ namespace cling {
void LexWhitespace(char C, Token& Tok);
void SkipWhitespace();
inline char getAndAdvanceChar(const char *&Ptr) {
return *Ptr++;
return *Ptr++;
}
};
} //end namespace cling

View File

@ -525,7 +525,7 @@ namespace cling {
}
return false;
}
bool MetaParser::isNamespaceCommand() {
const Token& Tok = getCurTok();
if (Tok.is(tok::ident)) {

View File

@ -104,7 +104,7 @@ namespace cling {
}
}
MetaProcessor::MetaProcessor(Interpreter& interp, raw_ostream& outs)
MetaProcessor::MetaProcessor(Interpreter& interp, raw_ostream& outs)
: m_Interp(interp), m_Outs(&outs) {
m_InputValidator.reset(new InputValidator());
m_MetaParser.reset(new MetaParser(new MetaSema(interp, *this)));
@ -121,7 +121,7 @@ namespace cling {
*result = Value();
compRes = Interpreter::kSuccess;
int expectedIndent = m_InputValidator->getExpectedIndent();
if (expectedIndent)
compRes = Interpreter::kMoreInputExpected;
if (!input_text || !input_text[0]) {
@ -210,7 +210,7 @@ namespace cling {
size_t size = in.tellg();
std::string content(size, ' ');
in.seekg(0);
in.read(&content[0], size);
in.read(&content[0], size);
if (ignoreOutmostBlock && !content.empty()) {
static const char whitespace[] = " \t\r\n";

View File

@ -345,7 +345,7 @@ namespace cling {
void MetaSema::actOnClassCommand() const {
DisplayClasses(m_MetaProcessor.getOuts(), &m_Interpreter, true);
}
void MetaSema::actOnNamespaceCommand() const {
DisplayNamespaces(m_MetaProcessor.getOuts(), &m_Interpreter);
}

View File

@ -134,7 +134,7 @@ namespace cling {
cling::Interpreter::CompilationResult compRes;
MetaProcessor::MaybeRedirectOutputRAII RAII(m_MetaProcessor.get());
int indent
int indent
= m_MetaProcessor->process(line.c_str(), compRes, 0/*result*/);
// Quit requested
if (indent < 0)

View File

@ -1067,7 +1067,7 @@ namespace utils {
template<class T> using ptr = T*;
ptr<Double32_t> p2;
// as the target is not a template.
*/
// So for now just return move on with the least lose we can do

View File

@ -2,12 +2,12 @@ namespace M {
namespace N {
template<typename T>
T function(T t) {
return t;
return t;
}
class A{};
template<typename T>class B : public A {};
class C :public B<int> {};
}
void FunctionWithDefaultArg(int x=0) {
}
@ -15,20 +15,20 @@ namespace M {
namespace stdtest {
class istream{};
extern istream cin;
template<typename T,typename A> class vector{};
template<typename... T>class tuple{};
template<bool B, class T, class F>
struct conditional { typedef T type; };
template<class T, class F>
struct conditional<false, T, F> { typedef F type; };
template<bool B, class T = void>
struct enable_if {};
template<class T>
struct enable_if<true, T> { typedef T type; };
}
}

View File

@ -1,10 +1,10 @@
namespace test { //implicit instantiation
template<bool B, class T, class F>
struct conditional { typedef T type; };
template<class T, class F>
struct conditional<false, T, F> { typedef F type; };
template <typename _Tp> using example = typename conditional<true,int,float>::type;
}//end namespace test
@ -15,7 +15,7 @@ namespace test { //nested name specifier
};
HasSubType::SubType FunctionUsingSubtype(HasSubType::SubType s){return s;}
extern HasSubType::SubType variable;//locale::id id
}//end namespace test
namespace test { //restrict keyword: try include/mmprivate.h and strlcpy.h when fixed

View File

@ -10,19 +10,19 @@
// Test stlFwd
// Only for reference purposes, doesn't actually use FwdPrinter
namespace std {
template <typename T,typename A> class __attribute__((annotate("vector"))) vector;
template <typename T,typename A> class __attribute__((annotate("list"))) list;
template <typename K,typename T,typename C,typename A> class __attribute__((annotate("map"))) map;
template <typename Ch,typename Tr,typename A> class basic_string;
template <typename T> class char_traits;
template <typename T> class allocator;
typedef basic_string<char,char_traits<char>,allocator<char>> string __attribute__((annotate("string"))) ;
template <typename R> void sort(R,R) __attribute__((annotate("algorithm")));
template <typename R,typename C> void sort(R,R,C) __attribute__((annotate("algorithm")));
template< bool B, typename T> struct __attribute__((annotate("type_traits"))) enable_if;
}

View File

@ -9,7 +9,7 @@
// RUN: cat %s | %cling -Xclang -verify | FileCheck %s
// XFAIL:*
// Test whether the interpreter is able to generate properly the symbols
// Test whether the interpreter is able to generate properly the symbols
// and the vtables of classes.
#include "cling/Interpreter/Interpreter.h"
@ -77,9 +77,9 @@ class V { public: virtual void fV() {} };
class B1 : virtual public V { /* ... */ };
class B2 : virtual public V { /* ... */ };
class B3 : public V { /* ... */ };
class X : public B1, public B2, public B3 {
public:
virtual void fV(){}
class X : public B1, public B2, public B3 {
public:
virtual void fV(){}
struct S {
virtual void fS() {}
};

View File

@ -15,8 +15,8 @@ private:
double member;
public:
MyClass() : member(42){}
static int get12(){ return 12; }
double getMember(){ return member; }
static int get12(){ return 12; }
double getMember(){ return member; }
}; MyClass m; m.getMember(); MyClass::get12();
.undo
.compareState "preUnload"

View File

@ -8,15 +8,15 @@
// RUN: cat %s | %cling -Xclang -verify 2>&1 | FileCheck %s
// Actually test clang::DeclContext::removeDecl(). This function in clang is
// the main method that is used for the error recovery. This means when there
// Actually test clang::DeclContext::removeDecl(). This function in clang is
// the main method that is used for the error recovery. This means when there
// is an error in cling's input we need to revert all the declarations that came
// in from the same transaction. Even when we have anonymous declarations we
// in from the same transaction. Even when we have anonymous declarations we
// need to be able to remove them from the declaration context. In a compiler's
// point of view there is no way that one can call removeDecl() and pass in anon
// decl, because the method is used when shadowing decls, which must have names.
// The issue is (and we patched it) is that removeDecl is trying to remove the
// anon decl (which doesn't have name) from the symbol (lookup) tables, which
// anon decl (which doesn't have name) from the symbol (lookup) tables, which
// doesn't make sense.
// The current test checks if that codepath in removeDecl still exists because
// it is important for the stable error recovery in cling
@ -30,7 +30,7 @@ class MyClass {
};
.compareState "testMyClass"
// CHECK-NOT: File with AST differencies stored in: testMyClassAST.diff
.storeState "testStructX"
struct X {
union {
@ -41,7 +41,7 @@ struct X {
union {
int i;
float f;
union {
float f2;
mutable double d;
@ -64,8 +64,8 @@ struct X {
};
.compareState "testStructX"
// CHECK-NOT: File with AST differencies stored in: testStructXAST.diff
// Make FileCheck happy with having at least one positive rule:
// Make FileCheck happy with having at least one positive rule:
int a = 5
// CHECK: (int) 5
.q

View File

@ -12,15 +12,15 @@
.storeState "testCurrentFailures"
#include "Overloads.h"
error_here;
error_here;
.compareState "testCurrentFailures"
// CHECK-NOT: Differences
// This is broken case where we want to declare a function inside a wrapper
// This is broken case where we want to declare a function inside a wrapper
// function, when the error recovery kicks in it segfaults.
double sin(double);
// Make FileCheck happy with having at least one positive rule:
// Make FileCheck happy with having at least one positive rule:
int a = 5
// CHECK: (int) 5
.q

View File

@ -16,11 +16,11 @@
BEGIN_NAMESPACE int j; END_NAMESPACE
.storeState "testMacroExpansion"
BEGIN_NAMESPACE int j; END_NAMESPACE // expected-error {{redefinition of 'j'}} expected-note {{previous definition is here}}
BEGIN_NAMESPACE int j; END_NAMESPACE // expected-error {{redefinition of 'j'}} expected-note {{previous definition is here}}
.compareState "testMacroExpansion"
.rawInput 0
// CHECK-NOT: Differences
// Make FileCheck happy with having at least one positive rule:
// Make FileCheck happy with having at least one positive rule:
int a = 5
// CHECK: (int) 5
.q

View File

@ -16,7 +16,7 @@ Currently, builtins cannot reliably ignored in the comparison of before and
// : cat %s | %cling -Xclang -verify 2>&1 | FileCheck %s
// Tests the removal of nested decls
// Tests the removal of nested decls
.storeState "testNestedDecls1"
struct Outer { struct Inner { enum E{i = 1}; }; };error_here; // expected-error {{use of undeclared identifier 'error_here'}}
.compareState "testNestedDecls1"
@ -33,7 +33,7 @@ enum AnEnum {
// CHECK-NOT: Differences
.rawInput
namespace Outer { struct Inner { enum E{i = 2}; }; };
namespace Outer { struct Inner { enum E{i = 2}; }; };
.rawInput
enum A{a};

View File

@ -22,7 +22,7 @@ int my_funct();
// CHECK-NOT: Differences
.rawInput 1
int my_funct() {
int my_funct() {
return 20;
}
.rawInput 0

View File

@ -8,7 +8,7 @@
// RUN: cat %s | %cling -I%p -Xclang -verify 2>&1 | FileCheck %s
// Test the removal of decls which are stored in vector of redeclarables
// Test the removal of decls which are stored in vector of redeclarables
.rawInput 1
extern int __my_i;
template<typename T> T TemplatedF(T t);
@ -31,14 +31,14 @@ template<> int TemplatedF(int i) { return i + 100; }
int OverloadedF(int i) { return i + 100;}
.rawInput 0
int __my_i = 10
int __my_i = 10
// CHECK: (int) 10
OverloadedF(__my_i)
OverloadedF(__my_i)
// CHECK: (int) 110
TemplatedF(__my_i)
TemplatedF(__my_i)
// CHECK: (int) 110
TemplatedF((double)3.14)
// CHECK: IncrementalExecutor::executeFunction: symbol '_Z10TemplatedFIdET_S0_' unresolved while linking function
TemplatedF((double)3.14)
// CHECK: IncrementalExecutor::executeFunction: symbol '_Z10TemplatedFIdET_S0_' unresolved while linking function
.q

View File

@ -8,7 +8,7 @@
// RUN: cat %s | %cling -I%p | FileCheck %s
// We should revise the destruction of the LifetimeHandlers, because
// its destructor uses gCling and the CompilerInstance, which are
// its destructor uses gCling and the CompilerInstance, which are
// already gone
#include "cling/Interpreter/Interpreter.h"
@ -24,7 +24,7 @@ gCling->setCallbacks(SRC);
// CHECK: After Alpha is Beta {{.*Interpreter.*}}
// CHECK: Alpha dtor called {{.*Interpreter.*}}
Alpha a(sadasds->getVersion());
Alpha a(sadasds->getVersion());
printf("%s\n", a.getVar()); // CHECK: {{.*Interpreter.*}}
int res = h->Add10(h->Add10(h->Add10(0))) // CHECK: (int) 30

View File

@ -33,7 +33,7 @@ if (!fromJIT) printf("gMyGlobal should come from JIT!\n");
printf("gMyGlobal: %s\n", comp(addr1, addr2)); // CHECK: gMyGlobal: equal
.rawInput
namespace N {
namespace N {
int gMyGlobal = 13;
}
.rawInput

View File

@ -33,7 +33,7 @@ void generateNestedTransaction(int depth) {
sprintf(buff, "int i%d;", depth);
gCling->process(buff);
} // this will cause every even transaction to be reused.
generateNestedTransaction(--depth);
generateNestedTransaction(--depth);
}
.rawInput 0

View File

@ -7,7 +7,7 @@
//------------------------------------------------------------------------------
// RUN: cat %s | %cling 2>&1 | FileCheck %s
// Test findArgList
// Test findArgList
#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/LookupHelper.h"

View File

@ -131,7 +131,7 @@ public:
void operator delete(void* vp, void* arena) {}
void operator delete[](void* vp) { ::operator delete[](vp); }
void operator delete[](void* vp, void* arena) {}
void A_n(B& b) { b.B_f(); }
void A_n(const char *msg, int ndim = 0) { if (ndim) ++msg; }
};
@ -684,7 +684,7 @@ printf("func_A_n2_args: 0x%lx\n", (unsigned long) func_A_n2_args);
//CHECK: func_A_n2_args: 0x{{[1-9a-f][0-9a-f]*$}}
func_A_n2_args->print(llvm::errs());
//CHECK-NEXT: void A_n(const char *msg, int ndim = 0) {
//CHECK-NEXT: if (ndim)
//CHECK-NEXT: if (ndim)
//CHECK-NEXT: ++msg;
//CHECK-NEXT: }
@ -692,7 +692,7 @@ printf("func_A_n2_proto: 0x%lx\n", (unsigned long) func_A_n2_proto);
//CHECK: func_A_n2_proto: 0x{{[1-9a-f][0-9a-f]*$}}
func_A_n2_proto->print(llvm::errs());
//CHECK-NEXT: void A_n(const char *msg, int ndim = 0) {
//CHECK-NEXT: if (ndim)
//CHECK-NEXT: if (ndim)
//CHECK-NEXT: ++msg;
//CHECK-NEXT: }
@ -947,7 +947,7 @@ printf("func_const_B_o_proto: 0x%lx\n", (unsigned long) func_const_B_o_proto);
//CHECK: func_const_B_o_proto: 0x{{[1-9a-f][0-9a-f]*$}}
func_const_B_o_proto->print(llvm::errs());
//CHECK-NEXT: const long &B_o() const {
//CHECK-NEXT: return this->m_B_i;
//CHECK-NEXT: return this->m_B_i;
//CHECK-NEXT: }
// Test exact matches
@ -956,7 +956,7 @@ printf("func_const_B_p_proto 1: 0x%lx\n", (unsigned long) func_const_B_p_proto);
//CHECK: func_const_B_p_proto 1: 0x{{[1-9a-f][0-9a-f]*$}}
func_const_B_p_proto->print(llvm::errs());
//CHECK-NEXT: long B_p(float) const {
//CHECK-NEXT: return 0;
//CHECK-NEXT: return 0;
//CHECK-NEXT: }
func_const_B_p_proto = lookup.matchFunctionProto(class_A, "B_p", "double", diags, true);
@ -968,7 +968,7 @@ printf("func_const_B_p_proto 3: 0x%lx\n", (unsigned long) func_const_B_p_proto);
//CHECK: func_const_B_p_proto 3: 0x{{[1-9a-f][0-9a-f]*$}}
func_const_B_p_proto->print(llvm::errs());
//CHECK-NEXT: long B_p(float) const {
//CHECK-NEXT: return 0;
//CHECK-NEXT: return 0;
//CHECK-NEXT: }
func_const_B_p_proto = lookup.matchFunctionProto(class_A, "B_p", "float", diags, false);
@ -980,7 +980,7 @@ printf("func_const_B_p_proto 5: 0x%lx\n", (unsigned long) func_const_B_p_proto);
//CHECK: func_const_B_p_proto 5: 0x{{[1-9a-f][0-9a-f]*$}}
func_const_B_p_proto->print(llvm::errs());
//CHECK-NEXT: int B_p(int) {
//CHECK-NEXT: return 0;
//CHECK-NEXT: return 0;
//CHECK-NEXT: }
func_const_B_p_proto = lookup.matchFunctionProto(class_A, "B_p", "int", diags, true);
@ -1041,14 +1041,14 @@ dumpDecl("func_B_ctr3_args", func_B_ctr3_args);
//CHECK: func_B_ctr3_args: 0x{{[1-9a-f][0-9a-f]*$}}
//CHECK-NEXT: func_B_ctr3_args name: B::B<char>
//CHECK-NEXT: {
//CHECK-NEXT: this->m_B_i = (char)v;
//CHECK-NEXT: this->m_B_i = (char)v;
//CHECK-NEXT: }
dumpDecl("func_B_ctr3_proto", func_B_ctr3_proto);
//CHECK: func_B_ctr3_proto: 0x{{[1-9a-f][0-9a-f]*$}}
//CHECK-NEXT: func_B_ctr3_proto name: B::B<char>
//CHECK-NEXT: {
//CHECK-NEXT: this->m_B_i = (char)v;
//CHECK-NEXT: this->m_B_i = (char)v;
//CHECK-NEXT: }
B* force_B_char_ptr_ctr = new B((char*)0);

View File

@ -8,15 +8,15 @@
// RUN: cat %s | %cling -Xclang -verify
// We must be able to handle cases where, there is a custom function that has
// attributes non-null arguments and we should be able to add a non-null arg
// We must be able to handle cases where, there is a custom function that has
// attributes non-null arguments and we should be able to add a non-null arg
// attribute to a say library function.
// Qualified functions.
extern "C" int printf(const char* fmt, ...);
namespace custom_namespace {
void standaloneFunc(void* p, int q, float* s) __attribute__((nonnull(1,3))) { // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}}
if (!p || !s)
if (!p || !s)
printf("Must not be called with 0 args.\n");
}
void standaloneFunc2(void* p, int q, float* s) __attribute__((nonnull(3)));

View File

@ -9,7 +9,7 @@
// RUN: cat %s | %cling | FileCheck %s
// XFAIL:*
// The test exposes a weakness in the declaration extraction of types. As
// The test exposes a weakness in the declaration extraction of types. As
// reported in issue ROOT-5248.
extern "C" int printf(const char* fmt, ...);

View File

@ -13,7 +13,7 @@
// PR #93092
// Don't remove the spaces and tabs
.L cling/Interpreter/Interpreter.h
.L cling/Interpreter/Interpreter.h
.X ./DotXable.h(5)
// CHECK: 5
// End PR #93092

View File

@ -1,9 +1,9 @@
// RUN: cat %s | %cling | FileCheck --check-prefix=CHECKOUT %s
// RUN: cat %s | %cling 2> /tmp/stderr.txt && cat /tmp/stderr.txt | FileCheck --check-prefix=CHECKERR %s
// RUN: cat %s | %cling | cat /tmp/outfile.txt | FileCheck --check-prefix=CHECK-REDIRECTOUT %s
// RUN: cat %s | %cling | cat /tmp/outfile.txt | FileCheck --check-prefix=CHECK-REDIRECTOUT %s
// RUN: cat %s | %cling | cat /tmp/errfile.txt | FileCheck --check-prefix=CHECK-REDIRECTERR %s
// RUN: cat %s | %cling | cat /tmp/bothfile.txt | FileCheck --check-prefix=CHECK-REDIRECTBOTH %s
// RUN: cat %s | %cling | cat /tmp/anotheroutfile.txt | FileCheck --check-prefix=CHECK-REDIRECTANOTHER %s
// RUN: cat %s | %cling | cat /tmp/bothfile.txt | FileCheck --check-prefix=CHECK-REDIRECTBOTH %s
// RUN: cat %s | %cling | cat /tmp/anotheroutfile.txt | FileCheck --check-prefix=CHECK-REDIRECTANOTHER %s
#include <iostream>
@ -95,7 +95,7 @@ std::cerr << "Err is still in &> file.\n"
//CHECK-REDIRECTBOTH: Err is still in &> file.
// Test toggle stderr to the prompt when redirected with &.
// Test toggle stderr to the prompt when redirected with &.
.2>
std::cerr << "Err back from &> file.\n"
//CHECKERR: Err back from &> file.

View File

@ -8,7 +8,7 @@
// RUN: cat %s | %cling | FileCheck %s
// Checks for infinite recursion when we combine nested calls of process line
// Checks for infinite recursion when we combine nested calls of process line
// with global initializers.
#include "cling/Interpreter/Interpreter.h"

View File

@ -18,24 +18,24 @@ E // CHECK: (struct C &) @0x{{[0-9A-Fa-f]{6,12}.}}
E.d // CHECK: (int) 22
#include <string>
std::string s("xyz")
std::string s("xyz")
// CHECK: (std::string &) @0x{{[0-9A-Fa-f]{6,12}.}}
// CHECK: c_str: "xyz"
#include <limits.h>
class Outer {
public:
struct Inner {
enum E{
class Outer {
public:
struct Inner {
enum E{
A = INT_MAX,
B = 2,
B = 2,
C = 2,
D = INT_MIN
} ABC;
};
} ABC;
};
};
Outer::Inner::C
// CHECK: (Outer::Inner::E::B) ? (Outer::Inner::E::C) : (int) 2
// CHECK: (Outer::Inner::E::B) ? (Outer::Inner::E::C) : (int) 2
Outer::Inner::D
// CHECK: (Outer::Inner::E::D) : (int) -{{[0-9].*}}

View File

@ -18,9 +18,9 @@ extern "C" int functionWithoutDefinition();
int i = 42;
i = functionWithoutDefinition();
// CHECK: IncrementalExecutor::executeFunction: symbol 'functionWithoutDefinition' unresolved while linking function
// CHECK: IncrementalExecutor::executeFunction: symbol 'functionWithoutDefinition' unresolved while linking function
i = foo();
// CHECK: IncrementalExecutor::executeFunction: symbol '{{.*}}foo{{.*}}' unresolved while linking function
// CHECK: IncrementalExecutor::executeFunction: symbol '{{.*}}foo{{.*}}' unresolved while linking function
extern "C" int printf(const char* fmt, ...);
printf("got i=%d\n", i); // CHECK: got i=42
@ -29,10 +29,10 @@ int a = 12// CHECK: (int) 12
foo()
// CHECK: IncrementalExecutor::executeFunction: symbol '{{.*}}foo{{.*}}' unresolved
functionWithoutDefinition();
// CHECK: IncrementalExecutor::executeFunction: symbol 'functionWithoutDefinition' unresolved while linking function
// CHECK: IncrementalExecutor::executeFunction: symbol 'functionWithoutDefinition' unresolved while linking function
bar();
// CHECK: IncrementalExecutor::executeFunction: symbol '{{.*}}foo{{.*}}' unresolved while linking function
// CHECK: IncrementalExecutor::executeFunction: symbol '{{.*}}foo{{.*}}' unresolved while linking function
bar();
// CHECK: IncrementalExecutor: calling unresolved symbol, see previous error message!

View File

@ -53,7 +53,7 @@ namespace Details {
namespace NS {
template <typename T, int size = 0> class ArrayType {};
template <typename T> class Array {};
template <typename T> class Container {
public:
class Content {};
@ -86,10 +86,10 @@ public:
enum Eenum {
kEnumConst=16
};
class EmbeddedClasses;
typedef EmbeddedClasses EmbeddedTypedef;
typedef EmbeddedClasses EmbeddedTypedef;
class EmbeddedClasses {
public:
class Embedded1 {};
@ -104,7 +104,7 @@ public:
EmbeddedClasses::Embedded1 m_emb1;
EmbeddedClasses::Embedded2 m_emb2;
EmbeddedClasses::Embedded3 m_emb3;
EmbeddedTypedef::Embedded4 m_emb4;
Embedded_objects::EmbeddedClasses::Embedded5 m_emb5;
Embedded_objects::EmbeddedTypedef::Embedded6 m_emb6;
@ -205,7 +205,7 @@ QT = clang::QualType(t, 0);
Transform::GetPartiallyDesugaredType(Ctx, QT, transConfig).getAsString().c_str()
// CHECK: ({{[^)]+}}) "class <anonymous namespace>::InsideAnonymous"
// The above result is not quite want we want, so the client must using
// The above result is not quite want we want, so the client must using
// the following:
// The scope suppression is required for getting rid of the anonymous part of the name of a class defined in an anonymous namespace.
// This gives us more control vs not using the clang::ElaboratedType and relying on the Policy.SuppressUnwrittenScope which would

View File

@ -62,7 +62,7 @@ int main( int argc, char **argv ) {
ui.runInteractively(interp.getOptions().NoLogo);
}
bool ret = CI->getDiagnostics().getClient()->getNumErrors();
bool ret = CI->getDiagnostics().getClient()->getNumErrors();
// if we are running with -verify a reported has to be returned as unsuccess.
// This is relevant especially for the test suite.

View File

@ -76,8 +76,8 @@ CPT is meant to be executed on cmd.exe prompt. Make sure you have set the
environment properly before continuing.
Below is a list of required packages for Windows (Win32-x86):
[MSYS Git] for Windows
[Python] for Windows
[MSYS Git] for Windows
[Python] for Windows
Microsoft Visual Studio 11 (2012), with Microsoft Visual C++ 2012
[MSYS Git]:http://msysgit.github.io/
[Python]:https://www.python.org/
@ -94,7 +94,7 @@ doesn't contain spaces. For example, you should install Python in a path like
C:\Python27
```
rather than
```sh
C:\Program Files (x86)\Python 2.7
```

View File

@ -18,16 +18,16 @@
###############################################################################
BIN_FILES := \
bin/cling@EXEEXT@
bin/cling@EXEEXT@
# CAUTION: The trailing space above is needed. DO NOT delete.
DOCS_FILES := \
docs/llvm/html/cling/cling.html \
docs/llvm/html/cling/manpage.css \
\
docs/llvm/ps/cling.ps
docs/llvm/ps/cling.ps
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_CLANG_FILES := \
include/Analysis/Analyses/CFGReachabilityAnalysis.h \
include/Analysis/Analyses/Consumed.h \
@ -464,7 +464,7 @@ INCLUDE_CLANG_FILES := \
include/clang/Tooling/RefactoringCallbacks.h \
include/clang/Tooling/Refactoring.h \
include/clang/Tooling/ReplacementsYaml.h \
include/clang/Tooling/Tooling.h
include/clang/Tooling/Tooling.h
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_CLANG_C_FILES := \
@ -473,7 +473,7 @@ INCLUDE_CLANG_C_FILES := \
include/clang-c/CXErrorCode.h \
include/clang-c/CXString.h \
include/clang-c/Index.h \
include/clang-c/Platform.h
include/clang-c/Platform.h
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_CLING_FILES := \
@ -501,7 +501,7 @@ INCLUDE_CLING_FILES := \
include/cling/UserInterface/CompilationException.h \
include/cling/UserInterface/UserInterface.h \
\
include/cling/Utils/AST.h
include/cling/Utils/AST.h
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_LLVM_FILES := \
@ -1088,7 +1088,7 @@ INCLUDE_LLVM_FILES := \
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h \
include/llvm/Transforms/Utils/UnrollLoop.h \
include/llvm/Transforms/Utils/ValueMapper.h \
include/llvm/Transforms/Vectorize.h
include/llvm/Transforms/Vectorize.h
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_LLVM_C_FILES := \
@ -1111,7 +1111,7 @@ INCLUDE_LLVM_C_FILES := \
include/llvm-c/Transforms/IPO.h \
include/llvm-c/Transforms/PassManagerBuilder.h \
include/llvm-c/Transforms/Scalar.h \
include/llvm-c/Transforms/Vectorize.h
include/llvm-c/Transforms/Vectorize.h
# CAUTION: The trailing space above is needed. DO NOT delete.
LIB_CLANG_HEADERS := \
@ -1161,11 +1161,11 @@ LIB_CLANG_HEADERS := \
lib/clang/3.5/include/__wmmintrin_pclmul.h \
lib/clang/3.5/include/x86intrin.h \
lib/clang/3.5/include/xmmintrin.h \
lib/clang/3.5/include/xopintrin.h
lib/clang/3.5/include/xopintrin.h
# CAUTION: The trailing space above is needed. DO NOT delete.
SHARE_FILES := \
share/man/man1/cling.1
share/man/man1/cling.1
# CAUTION: The trailing space above is needed. DO NOT delete.
INCLUDE_FILES := \

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -95,11 +95,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -97,11 +97,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -49,7 +49,7 @@
<li><a class="secm_link" href="#">Status of ObjC[++] Support</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -93,11 +93,11 @@ make regendoc</pre>
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev: 41615 $ by <b>$Author: vvassilev $</b></i></div>

View File

@ -49,7 +49,7 @@
<li><a class="secm_link" href="#">Status of ObjC[++] Support</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -78,7 +78,7 @@
<!-- insert the page content here -->
<h1>Extensions</h1>
<p>
Cling has several additional features. The main reason for their implementation is to improve the interactivity of the prompt. We call them language extensions.
Cling has several additional features. The main reason for their implementation is to improve the interactivity of the prompt. We call them language extensions.
</p>
<ul>For instance, language extensions are:
<li><b>Execution of statements and expressions on the fly</b> - From user's point of view it would make much sense if functions could be called by typing the function name at the prompt. This is true for other handy operations like creation of objects. However, the operations that do it are classified as statements and expressions, entered on the global scope. Statements and expressions on the global scope are not allowed by the C/C++/ObjC/ObjC++ grammar. Cling's prompt allows entering statements and expression on the global scope as transforming them into proper language constructs. </li>
@ -94,11 +94,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev: 41615 $ by <b>$Author: vvassilev $</b></i></div>

View File

@ -47,7 +47,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -131,13 +131,13 @@ svn co http://llvm.org/svn/llvm-project/cfe/trunk clang</pre>
</ul>
<ol>
<li>
Checkout LLVM
Checkout LLVM
<pre>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm/src/</pre>
</li>
<li>
Checkout Clang
<pre>cd llvm\src\tools\
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang</pre>
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang</pre>
</li>
<li>
Checkout Cling (next to Clang)
@ -172,11 +172,11 @@ svn co http://root.cern.ch/svn/root/branches/dev/cling cling</pre>
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -76,7 +76,7 @@
<div id="main">
<!-- insert the page content here -->
<h1>Cling</h1>
<p>
<p>
Welcome to our interactive C++ interpreter, built on the top of LLVM and Clang libraries. Its advantages over the standard interpreters are that it has command line prompt and uses just-in-time (JIT) compiler for compilation. An interactive prompt is usually referred to as a read eval print loop or repl. Many of the developers (e.g. Mono in their project called CSharpRepl) of such kind of software applications name them interactive compilers.
</p>
<p>
@ -105,7 +105,7 @@
<h2>Grammar</h2>
<p>Cling is able to parse everything that clang can. Current clang status can be found <a href="http://clang.llvm.org/cxx_status.html">here</a>. At the moment, there are use cases only for C++ that's why cling is best in working with C++. Clang has support of C, objC, objC++ and we are looking forward to having more use-cases and extend our tool in that direction.</p>
<ul>Cling has internal commands, which can change its behavior at runtime. Those commands usually start with dot (.):
<li><b>.I &lt;path&gt;</b> - Adds an include path;</li>
<li><b>.I &lt;path&gt;</b> - Adds an include path;</li>
<li><b>.x &lt;filename&gt;</b> - #include-s the filename; and calls function called filename(); </li>
<li><b>.L &lt;libname&gt;</b> - Loads libname or #include-s the libname if libname is file;</li>
<li><b>.@</b> - Cancels the multiline input;</li>
@ -150,11 +150,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -89,11 +89,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -88,11 +88,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -48,7 +48,7 @@
<li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
</ul>
</div>
</div>
</div>
</li>
@ -89,11 +89,11 @@
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>

View File

@ -17,15 +17,15 @@ ul#mainmenu li {
.tab_link {
font: 1.0em Arial,Helvetica, sans-serif;
font-variant: small-caps;
display: block;
float: left;
display: block;
float: left;
text-align: center;
text-decoration: none;
line-height: 30px;
margin: 5px 5px 0px 5px;
padding: 0px 20px 5px 20px;
color: #DDD;
}
}
li.selected a.tab_link {
background-color: #F4F4EE;
@ -119,7 +119,7 @@ ul#mainmenu li:hover > a.tab_link {
.column ul {
color: #FFF;
text-align: left;
margin-left: 1em;
margin-left: 1em;
}
ul#mainmenu .column ul li {

View File

@ -1,4 +1,4 @@
html {
html {
height: 100%;
}
@ -18,7 +18,7 @@ p {
line-height: 1.7em;
}
img {
img {
border: 0;
}
@ -33,11 +33,11 @@ h2 {
color: #B60000;
}
h3 {
h3 {
font: normal 155% 'century gothic', arial, sans-serif;
}
h4, h5, h6 {
h4, h5, h6 {
margin: 0;
padding: 0 0 5px 0;
font: normal 120% arial, sans-serif;
@ -83,7 +83,7 @@ hr {
clear: both;
}
a, a:hover {
a, a:hover {
outline: none;
text-decoration: underline;
color: #A4AA04;
@ -105,19 +105,19 @@ a.readmore {
}
.right {
float: right;
float: right;
width: auto;
margin-left: 10px;
}
.center {
.center {
display: block;
text-align: center;
margin: 20px auto;
}
blockquote {
margin: 20px 0;
margin: 20px 0;
padding: 10px 20px 0 20px;
border: 1px solid #E5E5DB;
background: #FFF;
@ -129,7 +129,7 @@ ul {
ul li {
list-style-type: circle;
margin: 0 0 6px 0;
margin: 0 0 6px 0;
padding: 0 0 4px 5px;
}
@ -141,7 +141,7 @@ ol li {
margin: 0 0 11px 0;
}
#website {
#website {
padding-bottom: 20px;
}
@ -150,7 +150,7 @@ ol li {
height: 180px;
}
#logo {
#logo {
min-width: 860px;
max-width: 1024px;
position: relative;
@ -161,7 +161,7 @@ ol li {
}
#logo #logo_text {
position: absolute;
position: absolute;
top: 10px;
left: 0;
}
@ -180,7 +180,7 @@ ol li {
text-decoration: none;
}
#logo_text h1 a .logo_colour {
#logo_text h1 a .logo_colour {
color: #ECEF01;
}
@ -218,7 +218,7 @@ ol li {
background: #FFF;
border-radius: 20px; -moz-border-radius: 20px;
border: 1px solid #ECECE0;
}
}
.sidebar {
float: right;
@ -229,21 +229,21 @@ ol li {
-moz-border-radius: 20px; border-radius: 20px;
}
.sidebar ul {
width: 178px;
padding: 4px 0 0 0;
width: 178px;
padding: 4px 0 0 0;
margin: 4px 0 30px 0;
}
.sidebar li {
list-style: none;
padding: 0 0 7px 0;
list-style: none;
padding: 0 0 7px 0;
}
.sidebar li a, .sidebar li a:hover {
padding: 0 0 0 35px;
display: block;
background: transparent url(link.png) no-repeat left center;
}
}
.sidebar li a.selected {
color: #444;
@ -264,7 +264,7 @@ ol li {
#main ul li {
list-style-type: none;
background: url(bullet.png) no-repeat;
margin: 0.5em 0 0 0;
margin: 0.5em 0 0 0;
padding: 0 0 0 25px;
line-height: 1.5em;
}
@ -275,7 +275,7 @@ ol li {
margin-top: 20px;
padding: 20px 0 5px 0;
margin: 0 auto;
text-align: center;
text-align: center;
background: transparent;
color: #333;
text-transform: uppercase;
@ -287,7 +287,7 @@ ol li {
text-decoration: none;
}
#footer a:hover {
#footer a:hover {
color: #333;
}
@ -299,10 +299,10 @@ ol li {
}
.search {
color: #5D5D5D;
border: 1px solid #BBB;
width: 134px;
padding: 4px;
color: #5D5D5D;
border: 1px solid #BBB;
width: 134px;
padding: 4px;
font: 100% arial, sans-serif;
}
@ -310,39 +310,39 @@ ol li {
margin: 15px 0 0 0;
}
.form_settings p {
.form_settings p {
padding: 0 0 4px 0;
}
.form_settings span {
float: left;
width: 200px;
float: left;
width: 200px;
text-align: left;
}
.form_settings input, .form_settings textarea {
padding: 5px;
width: 299px;
font: 100% arial;
border: 1px solid #E5E5DB;
background: #FFF;
padding: 5px;
width: 299px;
font: 100% arial;
border: 1px solid #E5E5DB;
background: #FFF;
color: #47433F;
}
.form_settings .submit {
font: 100% arial;
border: 1px solid;
width: 99px;
margin: 0 0 0 212px;
font: 100% arial;
border: 1px solid;
width: 99px;
margin: 0 0 0 212px;
height: 33px;
padding: 2px 0 3px 0;
cursor: pointer;
background: #3B3B3B;
cursor: pointer;
background: #3B3B3B;
color: #FFF;
}
.form_settings textarea, .form_settings select {
font: 100% arial;
.form_settings textarea, .form_settings select {
font: 100% arial;
width: 299px;
}
@ -351,8 +351,8 @@ ol li {
}
.form_settings .checkbox {
margin: 4px 0;
padding: 0;
margin: 4px 0;
padding: 0;
width: 14px;
border: 0;
background: none;
@ -368,17 +368,17 @@ ol li {
table {
margin: 10px 0 30px 0;
width: 100%;
width: 100%;
border-spacing: 0;
}
table tr th, table tr td {
table tr th, table tr td {
background: #3B3B3B;
color: #FFF;
padding: 7px 4px;
text-align: left;
}
table tr td {
background: #F4F4EE;
color: #47433F;