Commit Graph

3540 Commits

Author SHA1 Message Date
Axel Naumann
4b5f2c6b15 Silence warnings. 2016-12-01 17:29:08 +01:00
Bertrand Bellenot
f98f5a0096 Should fix cling.exp : error LNK2001: unresolved external symbol "char const * const cling::valuePrinterInternal::kEmptyCollection" 2016-12-01 17:14:05 +01:00
Bertrand Bellenot
f67fbca15b Revert previous change ("extern" was not the problem) 2016-12-01 17:14:05 +01:00
Bertrand Bellenot
43c8a82180 Remove extra "extern" qualifier
Fix cling.exp : error LNK2001: unresolved external symbol "char const * const cling::valuePrinterInternal::kEmptyCollection"
2016-12-01 11:59:05 +01:00
Bertrand Bellenot
772be9c0e7 Prevent waiting hours on failing build 2016-12-01 10:59:30 +01:00
Bertrand Bellenot
693ae44569 Remove unnecessary (?) quotes 2016-12-01 10:59:30 +01:00
Bertrand Bellenot
06f21a7218 Add platform argument (x86/x64) to vcvarsall.bat 2016-12-01 10:44:05 +01:00
Bertrand Bellenot
b248bafd57 Enable tests on Windows in appveyor 2016-12-01 10:44:05 +01:00
Bertrand Bellenot
5d0e1af50c Filter out non-Windows include 2016-12-01 10:24:47 +01:00
Bertrand Bellenot
a855e3b679 Call ASCII Windows functions. 2016-12-01 10:24:47 +01:00
Bertrand Bellenot
9b7a5cca15 On Windows, getenv triggers a warning. Use atoi instead. 2016-11-30 11:14:29 +01:00
Bertrand Bellenot
fdf057e19a Cannot use tick as quote on Windows.' 2016-11-30 11:14:29 +01:00
Bertrand Bellenot
0d50cea5ca Sync clang and cling options on Windows. 2016-11-30 10:14:14 +01:00
Bertrand Bellenot
f8f73fd444 On Windows we need -nostdinc as C and C++ header locations are identical. 2016-11-30 10:14:14 +01:00
Bertrand Bellenot
79d830c122 Test cannot succeed on Windows due to DLL / dyn linker behavior. 2016-11-30 10:14:14 +01:00
Bertrand Bellenot
1f6b27c24c Make non-windows selectable for tests. 2016-11-30 10:14:13 +01:00
Bertrand Bellenot
23d3c1669d Use simple LoadLibrary() function 2016-11-30 10:14:13 +01:00
Bertrand Bellenot
aa5b7fe2ce Do not force non-unicode. 2016-11-30 10:14:12 +01:00
Axel Naumann
ef8d80dc57 Make .x file name mangling partial again; explain why. 2016-11-29 08:29:17 +01:00
Philippe Canal
7a682ff1d7 remove stray semi-colon 2016-11-28 17:59:50 +01:00
Philippe Canal
5fc745247f Reduce code duplication by using fall through 2016-11-28 17:44:16 +01:00
Philippe Canal
1d0c1e0156 Mangle all funny file names for .x function (ROOT-8467). 2016-11-28 17:44:15 +01:00
Axel Naumann
5e14792560 Add test for ROOT-8467. 2016-11-28 17:44:15 +01:00
Axel Naumann
9be463964e Mangle funny file names for .x function (ROOT-8467). 2016-11-28 14:59:17 +01:00
Roman Zulak
9157aad03e Fix printing of std::map broken in 1e004e9.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-23 12:59:23 +01:00
Maarten Scholl
0a1bab6bd8 Fixed c++17 version name in kernel file
I encountered the following error and the above change fixed it

Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/
Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Nov 22 22:38:20 thesis jupyter[2811]: [I 22:38:20.303 NotebookApp] Kernel started: e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:23 thesis jupyter[2811]: [I 22:38:23.308 NotebookApp] KernelRestarter: restarting kernel (1/5)
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:26 thesis jupyter[2811]: [I 22:38:26.326 NotebookApp] KernelRestarter: restarting kernel (2/5)
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:29 thesis jupyter[2811]: [I 22:38:29.332 NotebookApp] KernelRestarter: restarting kernel (3/5)
Nov 22 22:38:30 thesis jupyter[2811]: [W 22:38:30.348 NotebookApp] Timeout waiting for kernel_info reply from e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:30 thesis jupyter[2811]: [I 22:38:30.365 NotebookApp] New terminal with specified name: 1
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:32 thesis jupyter[2811]: [I 22:38:32.338 NotebookApp] KernelRestarter: restarting kernel (4/5)
Nov 22 22:38:32 thesis jupyter[2811]: WARNING:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.664 NotebookApp] Session not found: session_id='19509685-b888-480b-897b-be2cc8fed1cc'
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.665 NotebookApp] 404 DELETE /api/sessions/19509685-b888-480b-897b-be2cc8fed1cc (192.168.0.24) 3.67ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb?kernel_name=cling-c++17
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.349 NotebookApp] KernelRestarter: restart failed
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.350 NotebookApp] Kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 died, removing from map.
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.368 NotebookApp] Kernel deleted before session
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.369 NotebookApp] 410 DELETE /api/sessions/ff344691-8fd6-4207-902e-01c944bdf7ae (192.168.0.24) 2.13ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb
2016-11-23 08:59:46 +01:00
erlanger
c5216dd7b8 fix bug with os.readlink and regular files
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
20420081cf support for c++17 (c++1z) in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
34460a3907 jupyter C++14/11: missing files in prev commit
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
be4ad78245 Support for C++11/C++14 in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
Roman Zulak
d538956101 Enclose string in place.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:35 +01:00
Roman Zulak
87415d29a9 Don't allocate a new string just for output.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:35 +01:00
Roman Zulak
a0fa470342 Print typedefs inside templated containers nicer.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:35 +01:00
Roman Zulak
5e6f6cc295 Remove invokePrintValueOverload function. It was doing redundant work and made it harder to understand the control flow.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:35 +01:00
Roman Zulak
a3e6a93f46 Use constant strings for special value types.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
1e004e9d3a Fix printing of collections. Make it impossible for a collection with 1 element to match the string of an empty collection. Avoid checking if comma needs to be added in loop. Make an empty tuple print same as empty collection: '{}'.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
65bba29867 Windows: Fix printing adresses as hexadecimal. Refactor into common function. Remove useless intermediate allocations/objects.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
c91e902f58 Windows: Fix print QualType's that can be severely hidden in layers of typedefs.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
79c52100cf Print QualType directly to string.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
aee507151a Use stack based stream and correct scope.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
6e951774bb Cleanup/optimize getTypeString.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
d15125b329 Reduce invokePrintValueOverload further. Remove inconsequential or redundant type checks.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
3943be660f Cleanup invokePrintValueOverload.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
9b22811f89 Remove unnecessary includes and defines.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Philippe Canal
d3a3fbf401 In AutoloadingVisitor use the top and direct header filename.
The two header filenames are recorded as two distincts annotation attribute so we now need to iterate through the attributes.
2016-11-18 01:29:09 +01:00
Philippe Canal
95c6491b4c In ForwardDeclPrinter records both the top level header and the directly accessible lower level header (when different).
This allows to catch the case where the user generate the dictionary with the top level header (which was the only one recorded before)
and the user #include the lower level header first.
2016-11-18 01:29:09 +01:00
Philippe Canal
f4d9d9ccae Pass Preproc and ASTContext instead of Sema to forward decl printer.
This will allow to lookup files during the printing
2016-11-18 01:29:09 +01:00
Philippe Canal
39ea2ba5c2 Extent autoforwarding test with more include nesting case 2016-11-18 01:29:09 +01:00
Roman Zulak
8a096ebfb4 Windows: Fix EOF not begin handled when reading from input.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-16 09:14:22 +01:00
Brian Bockelman
0cb447a445 Properly reset terminal state for various obscure signals. 2016-11-16 09:14:22 +01:00