Re: [lldb-dev] [RFC] Adding a clang-style LLVM.h (or, "Are you tired of typing 'llvm::' everywhere ?")

2019-04-18 Thread Pavel Labath via lldb-dev
On 18/04/2019 20:03, Robbert Haarman via lldb-dev wrote: On Thu, Apr 18, 2019, at 7:31 AM, Pavel Labath via lldb-dev wrote: Out of interest, I took a look at what lld is doing. I've found that while it doesn't have a LLVM.h equivalent, it is a heavy user of "using namespace llvm" (about 2 out o

Re: [lldb-dev] [RFC] Adding a clang-style LLVM.h (or, "Are you tired of typing 'llvm::' everywhere ?")

2019-04-18 Thread Robbert Haarman via lldb-dev
On Thu, Apr 18, 2019, at 7:31 AM, Pavel Labath via lldb-dev wrote: > Out of interest, I took a look at what lld is doing. I've found that > while it doesn't have a LLVM.h equivalent, it is a heavy user of "using > namespace llvm" (about 2 out of 3 cpp files have it). LLD has include/lld/Common/

Re: [lldb-dev] [RFC] Adding a clang-style LLVM.h (or, "Are you tired of typing 'llvm::' everywhere ?")

2019-04-18 Thread Adrian McCarthy via lldb-dev
I'd have no objection to individual .cpp files having a few using declarations for the specific types that file cares about: ... #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Optional.h" ... using llvm::ArrayRef; using llvm::Optional; And then the rest of the file use

Re: [lldb-dev] [RFC] Adding a clang-style LLVM.h (or, "Are you tired of typing 'llvm::' everywhere ?")

2019-04-18 Thread Pavel Labath via lldb-dev
Thanks for the replies. I was hoping to get more positive feedback for this, so given the current mixed-feelings replies, I think I'll just give up on this idea, unless a more vocal supporter appears (probably not the best idea to send this out just before the easter holidays). In the mean tim