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
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
Philippe Canal
9cd05070d7
Add missing override keywords
2016-11-16 09:14:22 +01:00
CristinaCristescu
0a895426d2
Code complete only input coming from tty as reported by Reader.
2016-11-16 09:14:22 +01:00
Axel Naumann
e43f5dbaa5
Allow "stealing" unfinished input. Enables resetting as a side-effect.
2016-11-16 09:14:22 +01:00
Bertrand Bellenot
7cffe5e49b
Typo
2016-11-16 09:14:22 +01:00
Vassil Vassilev
eb8957c092
Missing includes.
2016-11-16 09:14:22 +01:00
Boris Perovic
60660df4b7
Comments and refactorings (hidden -> masked) in the TextInput.
2016-11-16 09:14:22 +01:00
Bertrand Bellenot
515944b3ac
Use correct forward declaration (fix unresolved external symbol at link time)
2016-11-16 09:14:22 +01:00
Axel Naumann
b9a2361691
From martell: the proper spelling is _WIN32.
2016-11-16 09:14:22 +01:00
Axel Naumann
3468d790f1
Make tmp prune files process-unique (ROOT-6539).
2016-11-16 09:14:22 +01:00
Bertrand Bellenot
94a6f1fb8e
Small fix for text color in console
2016-11-16 09:14:21 +01:00
Axel Naumann
f67f118588
Removing temporary name.
2016-11-15 16:44:33 +01:00
Axel Naumann
2e7ac15af4
Add missing optimizer libs.
2016-11-15 16:44:32 +01:00
Axel Naumann
3ad4393932
Prepare for -O2 support & dynamic change of optimizer setting.
...
- Set the opt level on the (temporary) PassManagerBuilder.
- Reuse single FunctionPassManager.
- Pass XYZOptions in to construct optimizer passes lazily.
- Add all passes that clang::EmitAssemblyHelper::CreatePasses() adds.
2016-11-15 16:44:32 +01:00
Axel Naumann
bad1cbc2e0
Follow interface change.
2016-11-15 16:44:32 +01:00
Axel Naumann
2e4b59990d
Move BackendPasses to IncrementalExecutor.
...
They need the TargetMachine - and that's in the IncrementalExecutor.
2016-11-15 16:44:32 +01:00
Axel Naumann
690b7d6fac
Reorder includes from derived to base.
2016-11-15 16:44:32 +01:00
Axel Naumann
fc4ea6eade
Add missing include guards.
2016-11-15 16:44:32 +01:00
Philippe Canal
18cdccbc85
In AutoloadingVisitor, do not (ever) traverse definitions.
2016-11-14 03:14:37 +01:00
Philippe Canal
ce71bc9a5b
In AutoloadingVisitor, record and use the fact on whether we are traversing an autolading decl or not.
...
This affects whether we need to remove an inherit default or not (and vice et versa).
2016-11-14 03:14:37 +01:00
Philippe Canal
1b59773c18
In AutoloadingVisitor loop only from most recent decl to the autoloading decl.
...
I.e. only look at those that could have been affected directly by the content of the autoloading decl
2016-11-14 03:14:37 +01:00
Philippe Canal
7eb4413288
Revert 0547f09, i.e. re-extend default argument removal to more decls
2016-11-14 03:14:37 +01:00
Philippe Canal
b126607e4a
Consider a decl an autoloading decl only if the annotation is not inherited
2016-11-14 03:14:37 +01:00
Pere Mato
ac05814edc
Ensure that cling-compiledata.h is not taken from sources in preference
2016-11-11 10:29:42 +01:00
Axel Naumann
c9ad1f4a41
Only skipToEOF if needed.
2016-11-10 18:14:07 +01:00
Axel Naumann
87a972e570
Improve consistency for cling -x cuda.
2016-11-09 17:59:49 +01:00
Philippe Canal
a8bce0d416
Temporarily disable the default argument removal
2016-11-09 07:44:04 +01:00
Philippe Canal
8b1afa0e6b
In AutoloadingVisitor only unload enum decl that comes from the rootmap file
2016-11-08 22:59:56 +01:00
Philippe Canal
7c9379ac93
Refactor in RequireCompleteDeclContext the 'Update the DeclContext used for lookup to point to the definition.'
...
This superseeds 4fa2f7a38e37303b3bb5a9ba01d762122e8d9814, 2b4de2603a086162f89fd5eb16aa0d5fddac8a6e and 384f6eabcd2d02512b942215d7ae52ff40954027
2016-11-08 22:59:56 +01:00
Philippe Canal
bcf5b6f182
Remove traces of the default template argument in all the decl in the decl chains.
...
Fix part 1 of ROOT-8443
2016-11-08 20:14:31 +01:00
Axel Naumann
f5fe133410
Add clangParse needed by ParserStateRAII.
2016-11-08 08:44:16 +01:00
Axel Naumann
87585f78e0
Move -ldl to Utils, now that PlatformXYZ git moved.
2016-11-08 08:44:16 +01:00