[cfe-dev] clang-tidy / static analysis

Richard via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 22 08:52:44 PST 2017


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



More information about the cfe-dev mailing list