Devajith Valaparambil Sreeramaswamy
c5692e71f1
Use StringRef::{starts,ends}_with
...
Follows the changes introduced in https://reviews.llvm.org/D136030
2024-02-23 09:44:06 +01:00
Jonas Hahnfeld
fb4be6f374
InclusionDirective takes an clang::OptionalFileEntryRef
2023-12-11 08:59:20 +01:00
Jonas Hahnfeld
490a3a9359
LookupFile takes arguments as ConstSearchDirIterator
2023-12-11 08:59:20 +01:00
Vassil Vassilev
cefa80ef54
Rebase better to llvm13 to the FileEntryRef and FileEntry.
...
Likely fixes root-project/root#11933
2022-12-20 08:59:05 +01:00
Vassil Vassilev
e08a5e0fee
Preprocessor::LookupFile returns FileEntryRef.
...
See llvm/llvm-project@4dc5573acc
2022-12-09 08:44:16 +01:00
Vassil Vassilev
c8c61d7aa9
llvm::StringRef does not support automatic conversion to string anymore.
...
See llvm/llvm-project@777180a32b
2022-12-09 08:44:16 +01:00
Vassil Vassilev
deafa47202
Remove unused parameters. Fixes -Wunused-parameter.
2021-02-25 20:44:18 +01:00
Vassil Vassilev
4a2cc489a3
Add override keyword and InclusionDirective callback takes extra arg.
...
See llvm-mirror/clang@ef699b2 .
2021-02-25 20:44:16 +01:00
Vassil Vassilev
b3238e5f1c
LookupFile takes an extra optional argument.
2021-02-25 20:44:15 +01:00
Philippe Canal
7a5894d1b8
meta/cling: consistent casing for AutoLoading
2020-02-15 17:14:14 +01:00
Axel Naumann
3b7919436c
Do not unload enum fwd decl but silence redecl diag (ROOT-9363 ROOT-9114).
...
Unloading the enum forward decl has tragic consequences e.g. for template
specializations relying on that decl (as template type parameter): the
enum definition will not be associated with teh forward decl, and any
subsequent template specialization will not recognize the type identity
of the enum forward declaration and its definition.
Instead, silence the diagnostic. This is not nice, but will be fixed by
C++ modules.
2018-05-16 16:00:04 +02:00
Axel Naumann
b55066ffea
Claim #include <auto-parse-hdr> to remember the full path (ROOT-8863).
2017-12-06 05:59:06 +01:00
Vassil Vassilev
a1bd767b6b
Adapt to interface changes due to upgrade to r302975.
2017-06-08 10:29:13 +02:00
Frederich Munch
075f4ffa83
Add cling output streams to cling/Utils/Output.h
2016-12-19 13:59:11 +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
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
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
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
bedc277fae
Simplify invocation of DeclUnloader::UnloadDecl().
2016-06-26 18:59:08 +02:00
Axel Naumann
94bc9f4f73
Separate DeclUnloader; TransactionUnloader recurses through Interpreter.
2016-06-26 10:29:17 +02:00
Axel Naumann
1ec7136eeb
Refactor, centralize all TransactionUnloading in Interpreter.
2016-06-26 10:29:17 +02:00
Axel Naumann
e2f9cf80cd
Assert to error: cannot autoload that, its declaring header cannot be found at runtime!
2015-08-17 18:45:03 +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
0dec67dfe7
Follow interface change.
2015-02-11 10:57:42 +01:00
Philippe Canal
39c7e56770
typo
2015-02-05 17:25:25 +01:00
Axel Naumann
5cbc3fec0f
Keep default args once there is a template definition (ROOT-7037).
2015-02-05 16:57:37 +01:00
Axel Naumann
e1bc2a432a
Document crucial data member.
2015-02-05 16:57:36 +01:00
Axel Naumann
ade6726f11
Remember failures from autoload directives: they are likely persistent.
2014-10-03 14:35:04 +02:00
Axel Naumann
886396e7c6
Set FE cache, invalid (=null) FE is a reasonable cached value, too.
2014-10-02 16:33:01 +02:00
Bertrand Bellenot
a3b2f82dad
Fix compilation errors on Windows (constexpr is not known by standard MSVC compiler)
2014-10-02 14:44:05 +02:00
Axel Naumann
6d7401e81f
Optimization: check against previous file name and use its FileEntry.
2014-10-02 14:27:07 +02:00
Axel Naumann
7cb4bbbaf7
Do not use (non-0-term) data(); factor out the tag.
2014-09-22 16:36:23 +02:00
Axel Naumann
6aeb3289e1
Make sure we have a cling autoload annotation.
2014-09-22 16:36:22 +02:00
Vassil Vassilev
122233ada6
Do not display suggestions only for ROOT.
2014-09-19 14:05:15 +02:00
Axel Naumann
b94722690f
Prefix annotation by $clingAutoload$ to not confuse it with others.
2014-09-14 13:53:10 +02:00
Axel Naumann
e74ae3cf0f
Disable default cling-autoload callback (diag) for now.
...
The only real current user - ROOT - cannot make use of the diagnostics.
Instead the default callback should probably only be invoked if none of
the other, multiplexed handlers returns true.
2014-09-14 13:53:09 +02:00
Axel Naumann
b7a590c40e
Pass StringRef-s instead of copying strings...
2014-09-14 13:53:09 +02:00
Vassil Vassilev
9b28750656
Inline ctor.
2014-09-03 12:03:03 +02:00
Vassil Vassilev
00ed79b4e8
AutoloadCallback doesn't need to use listeners.
2014-08-23 15:26:04 +02:00
Vassil Vassilev
9ec9b36a4a
File can become 0 if #include-ing non-existant file.
2014-08-21 17:07:03 +02:00
Vassil Vassilev
f4c946a68d
AnnotateAttr::setAnnotation needs the decl of operator new.
2014-08-21 17:07:02 +02:00
manasij7479
c050cd0272
Put DeclFixer logic in AutoloadingVisitor
2014-08-21 17:07:02 +02:00
manasij7479
4b86baea4b
Remove AutoloadingTransform and use the TransactionCommitted callback
2014-08-21 17:07:02 +02:00