[cfe-dev] clang-tidy / static analysis

Jonas Toth via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 22 09:48:13 PST 2017

If that works do it :)

Maybe a ignoreImplicitCasts is worth a try.
I usually brute force matchers until they work. If someone knows better
ways please teach me :)

Am 22.11.2017 5:52 nachm. schrieb "Richard via cfe-dev" <
cfe-dev at lists.llvm.org>:

> [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 <CAAeLbQLgNGRUwaxE4rwRSE74dm6X-KmM6GtZB2q2V+iacep1=w at mail.
> gmail.com>,
>     Maurizio Vitale via cfe-dev <cfe-dev at lists.llvm.org> writes:
> > [...] Dumping the AST shows an
> > implicitCastExpr there, but even adding it around stringLiteral doesn't
> > work.
> I don't see anything wrong with your approach; it's the one I've used
> successfully in the past.  However, I haven't attempted any clang-tidy
> hacking in quite some time so something in the infrastructure might
> have changed in the meantime.
> I've generally gone through cycles of using clang-query, dumping the
> parsed AST and trying things in clang-tidy.
> --
> "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-
> pipeline>
>             The Terminals Wiki <http://terminals-wiki.org>
>      The Computer Graphics Museum <http://ComputerGraphicsMuseum.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/20171122/a01d5c69/attachment.html>

More information about the cfe-dev mailing list