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
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/
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
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