Commit Graph

4315 Commits

Author SHA1 Message Date
Philippe Canal
6c368913e7 clang-format suggestion 2017-08-24 17:03:58 +02:00
Frederich Munch
38c4b902cf Fix registration of other atexit functions during an atexit handler. Recursive registration of atexit handlers is legal and should be handled, not ignored. 2017-08-24 17:03:58 +02:00
Frederich Munch
5c41b2957c Hide members of CXAAtExitElement and make it a callable object. Update iteration to use llvm::reverse and C++11 range based for loop. 2017-08-24 17:03:58 +02:00
Frederich Munch
baa1cba4d3 Store unresolved symbols in an unordered_set; have no need for ordering. 2017-08-24 17:03:58 +02:00
Axel Naumann
8f59d3cb34 Coverity; assert on unhandled future C++ standard. 2017-08-23 01:27:08 +02:00
Axel Naumann
58614e53fd Coverity: add comment that fall-through is intentional. 2017-08-23 00:27:18 +02:00
gouarin
129ce9a5dd fix Clang name in cmake file
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-07-23 22:59:34 +02:00
Vassil Vassilev
87cb7eb95d Fix typo. 2017-07-16 13:59:17 +02:00
Frederich Munch
760df2116a Hide DeclCollectorPPAdapter and use DeclCollector for setup. No need for these details to be public. 2017-07-15 10:14:38 +02:00
Frederich Munch
fb2e8fc7a4 Fixes for CERN-LLVM. 2017-07-15 10:14:38 +02:00
Frederich Munch
eba5ccd09a Update DeclCollectorPPAdapter to allow unloading of #undef command. 2017-07-15 10:14:38 +02:00
Frederich Munch
68d2bac1b1 Use final instead of virtual keyword for DeclCollector. 2017-07-15 10:14:38 +02:00
Roman Zulak
4a8d300bb1 When looking for the end of a block comment, really don’t bother with nesting. Finding the first end is good enough, the real parser can warn about any balancing issues. 2017-07-13 10:21:58 +02:00
Roman Zulak
6f5594ab4d Fix block comments greedily looking for the next asterisk. 2017-07-13 10:21:58 +02:00
Vassil Vassilev
91fbccca72 Pull the alt master into the master branch. 2017-07-12 23:14:47 +02:00
Vassil Vassilev
79c5a90fb1 Do not checkout a specific commit. 2017-07-08 21:59:14 +02:00
Bertrand Bellenot
8720965ee5 Dont pass -fPIC flag on Windows (unsupported option) 2017-07-06 16:59:40 +02:00
Bertrand Bellenot
5947e13cb9 Don't run Gnu.C test on Windows... 2017-07-06 16:44:06 +02:00
Frederich Munch
7104363d9e Allow CompilerOptions:: DefaultLanguage to be queried earlier in initialization. 2017-07-06 15:59:08 +02:00
Frederich Munch
b4e11b5b79 Prefer local LangOptions variable rather than CI->getLangOpts(). 2017-07-05 11:29:06 +02:00
Frederich Munch
76a43cc209 Don’t change the C++ version from underneath clang, tell it what is desired. 2017-07-05 11:29:06 +02:00
Frederich Munch
1abc6539a9 Windows: Don’t enable GNU keywords by default. 2017-07-05 11:29:06 +02:00
Frederich Munch
66ba7a896c Formatting. 2017-07-05 11:29:06 +02:00
Vassil Vassilev
6ed7599285 Reimplement the sync procedure. 2017-07-05 10:44:07 +02:00
Bertrand Bellenot
cb658dd0f8 Fix fatal error LNK1120: 1 unresolved externals (Windows)
Remove export symbol causing the following linker error:
cling.exp : error LNK2001: unresolved external symbol "public: void __cdecl clang::Decl::dump(class llvm::raw_ostream &)const " (?dump@Decl@clang@@QEBAXAEAVraw_ostream@llvm@@@Z)
2017-07-05 10:44:07 +02:00
Frederich Munch
808cd70864 UserInterface: Enforce destruction order with TextInputHolder. 2017-07-05 10:29:07 +02:00
Frederich Munch
cdf5c72f1d Fix tests on platforms with __float128 without forcing C++14.
This reverts commit c11224dce0.
2017-07-05 10:00:05 +02:00
Frederich Munch
08178f1a46 Fix Windows exception handling for newer LLVM interfaces. Block it’s usage around CLING_WIN_SEH_EXCEPTIONS macro. 2017-07-05 09:14:09 +02:00
Bertrand Bellenot
071bf231b7 Fromm Frederich Munch: Fix CxxStdCompiledWith for Visual Studio, which requires C++14 2017-07-04 17:00:34 +02:00
Frederich Munch
329de59275 Windows: Fix infinite loop when piping to cling with < operator. 2017-07-04 15:36:52 +02:00
Frederich Munch
aad084a75a UserInterface: cling is discarding the last line if it does not have a newline. 2017-07-04 15:29:09 +02:00
Frederich Munch
22d5d1c1d2 Windows: Visual Studio 2017 is still returning 199711L for __cplusplus! 2017-07-04 15:29:09 +02:00
Vassil Vassilev
ecdba9e913 Try pushing the head. 2017-07-04 13:59:17 +02:00
Axel Naumann
b675d42b6f Support shebang even outside cling driver, e.g. #!/usr/bin/env root -l -b. 2017-07-04 13:44:22 +02:00
Axel Naumann
c11224dce0 Force -std=c++14 to enable __STRICT_ANSI__.
This removes __float128 warnings (enabled when building cling, disabled at runtime due to missing
support in clang) on MacOS with GCC.
2017-07-04 11:29:45 +02:00
Axel Naumann
4259fa5c74 Missing newline (breaking echo.C?) 2017-07-03 22:29:13 +02:00
Axel Naumann
609b88eabd Mark intentional fall-throughs (Coverity). 2017-07-03 14:47:57 +02:00
Axel Naumann
702dc6e269 Also escape array subscript (ROOT-7718). 2017-07-03 14:47:57 +02:00
Vassil Vassilev
e8e78cf280 cling-nightlies tag is a link to the master. 2017-06-30 13:29:08 +02:00
Vassil Vassilev
fd221803ba git fetch is not enough, try git pull. 2017-06-30 13:29:08 +02:00
Raphael Isemann
777650d799 Allow setting a custom ASTConsumer in CIFactory (NFC).
So far we create our DeclCollector in the CIFactory and then tried to
get this variable back in the IncrementalParser by casting the
ASTConsumer of our compiler instance to a DeclCollector. This strategy
fails as soon as we want to have multiple collectors and start using
the clang multiplexer as this call will now fail (e.g. in this case to
have another ASTConsumer that looks in the C++ modules case for what
libraries we need to link - and the best way to add this is via
the multiplexed ASTConsumer that clang provides).

This patch moves the responsibility for the DeclCollector to the
caller that relies on getting a DeclCollector back, which is in this
case the constructor of IncrementalParser.
2017-06-30 10:30:35 +02:00
Raphael Isemann
3c745639bb Always generate a ROOT modulemap and install it.
To use C++ modules during runtime we need to generate a modulemap
and install it alongside the ROOT headers. However, right now
we need to turn on cxxmodules to generate a modulemap, which would
force experiments to fulfill all the depndencies that cxxmodules
brings with it (that is, a modern clang that can build ROOT with C++
modules).

This patch untangles the modulemap generation from the cxxmodules
option, so that we always generate a modulemap even when cxxmodules
is turned off. We now also install the modulemap alongside
the ROOT headers.

No functional change for normal ROOT expected here, as the modulemap
will just be ignored without having runtime C++ modules enabled.
2017-06-29 20:51:50 +02:00
Axel Naumann
2b2f6f27db 80 cols [NFC]. 2017-06-28 17:14:08 +02:00
Axel Naumann
7aff792c8e #warning is compile-time :-) 2017-06-28 17:14:08 +02:00
Axel Naumann
93f04bf3a8 Remove stray semicolon [NFC]. 2017-06-28 17:14:08 +02:00
Frederich Munch
624e4cc731 Travis: Re-enable testing for issues with __float128 on OS X. 2017-06-28 16:15:10 +02:00
Frederich Munch
c4a1d433bb Set __CLING__CXX14 for consitancy. 2017-06-28 16:15:10 +02:00
Frederich Munch
ac8fb31f82 Remove outdated comments. 2017-06-28 16:15:10 +02:00
Frederich Munch
e90cfd8b4f Make sure to setup the language defaults normally when outputting a PCH. 2017-06-28 16:15:10 +02:00
Frederich Munch
4739761b89 Don’t clear GNUMode when user has specifically asked for it. There are uses that are valid even if the host compiled with _GLIBCXX_USE_FLOAT128. 2017-06-28 16:15:10 +02:00