[cfe-dev] clang-tidy Negative Lookahead Support

Alexander Kornienko via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 28 06:36:05 PST 2015


On Sat, Nov 21, 2015 at 1:49 AM, Richard via cfe-dev <cfe-dev at lists.llvm.org
> wrote:

>
> [Please reply *only* to the list and do not include my email directly
> in the To: or Cc: of your reply; otherwise I will not see your reply.
> Thanks.]
>
> In article <CANgHf=
> wWbzxTCCK91cP0hOVE-2zOiLRLgOODO-yekHBngCLuJw at mail.gmail.com>,
>     Daniel Dilts via cfe-dev <cfe-dev at lists.llvm.org> writes:
>
> > I asked about something similar to this a couple of months ago.  I
> believe
> > that the response was that one of the supported compilers did not
> currently
> > have std::regex.
>
> If we can't move forward due to lack of std::regex support, I'd like
> to see glob based filtering with positive and negative filtering like
> we have for checks.
>

Might be a good idea also for consistency with check filtering. If someone
interested sends me a patch, I'm happy to review it ;)


>
> > On Fri, Nov 20, 2015 at 11:41 AM, Samuel Baxter via cfe-dev <
> > cfe-dev at lists.llvm.org> wrote:
> > > [...]  It's nice to be able to pass the
> > > negative lookahead regex:
> > >
> > > ^(?!.*ThirdPartyLibs.*).*$
> > >
> > > and filter out all third party headers when running clang-tidy.
> > >     Other command line options (files, -checks, maybe others) accept
> glob
> > > filters, which allow for negation, and this comes in handy.  I think we
> > > should be consistent in allowing negation of some form in all filter
> > > options. I can try to re-implement this with a glob filter if that's
> > > preferable.
>
> --
> "The Direct3D Graphics Pipeline" free book <
> http://tinyurl.com/d3d-pipeline>
>      The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
>          The Terminals Wiki <http://terminals.classiccmp.org>
>   Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151228/cee4f8ce/attachment.html>


More information about the cfe-dev mailing list