Commit Graph

2632 Commits

Author SHA1 Message Date
Axel Naumann
7217f8099b Silence *calling* unresolved symbols. Handing it out already complains. 2015-08-17 18:45:02 +02:00
Axel Naumann
4b08f20793 Fix runtime / PCH incompatibility. 2015-06-26 14:44:19 +02:00
Axel Naumann
714df9c374 Revert "Annotate fwd decls with the header containing the decl, not the top-most include."
This reverts commit 125a93e0e3562dac5d5a0429ce49a2b625025c26.
It fails in the following case (roottest/root/io/evolution/pragma_read):
dictionary for a/b.h which includes a/c.h as #include "c.h"
This will add a fwd decl with annotation "c.h", but this header cannot
be found. Instead we'd need "a/c.h"...
2015-06-23 21:30:17 +02:00
Axel Naumann
cfd091955e Pass pthread to CIFactory; enable it in LangOpts. 2015-06-23 21:30:17 +02:00
Axel Naumann
3d4bb2b954 Fix fwd-decl detection and loops. 2015-06-23 11:13:16 +02:00
Axel Naumann
13dae8ee6b The RecursiveASTVisitor now calls Visit of bases itself. 2015-06-23 11:13:16 +02:00
Axel Naumann
1718483b7e Unload fwd decls of enums; redeclaring definitions fails. 2015-06-23 11:13:16 +02:00
Axel Naumann
4834289abd Annotate fwd decls with the header containing the decl, not the top-most include. 2015-06-18 16:01:47 +02:00
Bertrand Bellenot
3eed26e5a5 Fix load error reported on the forum (https://root.cern.ch/phpBB3/viewtopic.php?f=21&t=19840) 2015-06-17 10:50:29 +02:00
Axel Naumann
9ac315678b Fix for standalone cling build where CLANG_MAJOR is undefined (Thanks, Pere!). 2015-06-12 15:01:10 +02:00
Bertrand Bellenot
b5b37f564c Add a funtion to check if a file is a DLL, using proper WIN32 API 2015-06-09 17:22:06 +02:00
Axel Naumann
1c190f711f RevertTransaction() changes parent: assert on m_Transactions.back() first. 2015-06-09 11:03:18 +02:00
Axel Naumann
331a71cd2d Provide a valid SourceLoc - template instantiation needs it (ROOT-7364). 2015-06-08 18:10:01 +02:00
Axel Naumann
dc2047e7c4 Replace Transaction::reset() by ~Transaction(). Replace RefillPool by new Transaction.
Simplifies code, removes duplication.
2015-06-08 14:58:29 +02:00
Axel Naumann
886f586b08 Add assert; spelling. 2015-06-08 14:58:27 +02:00
Axel Naumann
439869b8c2 Use magic ExeUnload handle to tag "nothing to be unloaded".
This disambiguates a transaction without JITted module from one with JITted code.
Only the latter should be unloaded.
2015-06-08 14:58:27 +02:00
Axel Naumann
44ee56b7a1 Also unload modules that are queued for JITting. 2015-06-08 14:58:25 +02:00
Axel Naumann
e21b7319f3 Fix var name typo in find_first_not_of; combine if-s. 2015-06-08 11:20:18 +02:00
Axel Naumann
14719848cc Do not shadow parameter name (Coverity 60786). 2015-06-07 20:54:00 +02:00
Axel Naumann
7b0cae3aef Use non-shadowing param name (Coverity 61660). 2015-06-07 20:53:59 +02:00
Axel Naumann
77b6a92f5c Handle npos / not found, 2nd occurrence (Coverity 55587). 2015-06-07 20:38:21 +02:00
Axel Naumann
4e4ff52556 Handle npos / not found (Coverity 55587). 2015-06-07 20:38:20 +02:00
Axel Naumann
9e100c5dc5 Handle npos / not found (Coverity 55588); indentation; local vars. 2015-06-07 20:38:18 +02:00
Axel Naumann
926f9072ea Unbalanced store/compare can be usage error; diagnose, not assert. 2015-06-07 20:38:15 +02:00
Elisavet Sakellari
bfa9947c5a Implement search path cling pragma / ROOT macros (ROOT-7269). 2015-06-04 16:40:08 +02:00
Axel Naumann
a1d3eabd7e Revert "Remove dupe code: CurT->setIssuedDiags() already done in endTransaction()."
ParseResult could be failure withous Diags noticing.

This reverts commit 6d0a73cb0acb3cbb62460759bc17e85ff9aba53f.
2015-06-04 12:05:04 +02:00
Axel Naumann
5cfdd233c2 Test for ROOT-7295. 2015-06-04 11:30:15 +02:00
Axel Naumann
816232980c Delay resetting Diags until the Module has been released by Codegen. 2015-06-04 09:56:12 +02:00
Axel Naumann
6fc85c1883 Remove dupe code: CurT->setIssuedDiags() already done in endTransaction(). 2015-06-04 09:56:10 +02:00
Axel Naumann
aa24ff9e20 Do not leak on error (Coverity). 2015-06-03 11:01:27 +02:00
Bertrand Bellenot
15dda8ada2 Fix object format on Windows (thanks Axel for the hint!)
Solves the following error on Windows (as reported on the forum: https://root.cern.ch/phpBB3/viewtopic.php?f=21&t=19033):
[cling]$ int i = 0;
>>> Caught an interpreter exception!
>>> Incompatible object format!
2015-05-28 15:17:02 +02:00
Axel Naumann
7db73eb500 Reduce cling leakage to 0, according to valgrind. 2015-05-27 18:00:09 +02:00
Axel Naumann
9b61560c4a Extra paren against hex address followed by a dot. 2015-05-24 21:55:24 +02:00
Liza
99de1fe5c0 ROOT-7031 bug fix for illegal macros. 2015-05-21 20:24:10 +02:00
Axel Naumann
4ebef94da8 Unwrap (implicit) casts for fwd decls (ROOT-7276). 2015-05-18 15:24:09 +02:00
Bertrand Bellenot
4d4a4b1270 Fix compilation error on Windows (MSVC doesn't support m_AtExitFuncsSpinLock = ATOMIC_FLAG_INIT; in the class definition) 2015-05-18 11:42:19 +02:00
Axel Naumann
1508b73c7c Add test for ROOT-7310. 2015-05-13 12:12:00 +02:00
Axel Naumann
25b4369647 Only emit Value return placement new for CallInit (ROOT-7310). 2015-05-13 12:12:00 +02:00
Philippe Canal
67ffd34dd5 In GetPartiallyDesugaredTypeImpl fix type replacement.
When looking up in the list of type to be replaced by a typedef (basic_string -> string), use
the canonical type to make sure we have the right search (any sugar will make the search fail).
2015-05-08 19:46:12 +02:00
Axel Naumann
5aa38ee07a Enable new GCC 5.1 ABI. 2015-05-08 01:06:49 +02:00
Axel Naumann
ea307f050c Factor out PP binary and target defines. 2015-05-08 01:06:49 +02:00
Danilo Piparo
2441d473ec Suppress warning on apple platforms 2015-04-17 09:38:39 +02:00
Philippe Canal
2fc94b3fa9 Remove code duplication 2015-04-17 02:50:36 +02:00
Philippe Canal
e216aea985 Add __CLING__clang__ and __CLING__GNUC__.
Those macros are define only in 'interpreted' code and respectively
only if cling itself was built with clang or gcc.
2015-04-16 08:44:51 +02:00
Axel Naumann
219d68f641 More performant version of getting the underlying type. 2015-04-09 17:18:30 +02:00
Axel Naumann
397f6fb9e9 Fix warning; make determineStorageType() static. 2015-04-07 09:39:25 +02:00
Axel Naumann
ca9ac1961f Accelerate costly Value functions by storing results. 2015-04-06 21:30:19 +02:00
Axel Naumann
474d518615 Attooptimization. 2015-04-04 21:05:14 +02:00
Axel Naumann
7364a9de6b Simplify LexQuotedStringAndAdvance; fix remaining cling test failure. 2015-04-04 20:51:20 +02:00
Axel Naumann
e1d7d5dab7 Replace quote/apostrophe by complete literals. 2015-04-04 20:51:20 +02:00