[cfe-dev] [clang-tidy] Some possible contributions

Richard via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 14 13:56:28 PST 2015

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

In article <566F436A.2080902 at gmail.com>,
    Piotr Dziwinski via cfe-dev <cfe-dev at lists.llvm.org> writes:

> On 14/12/15 20:42, Richard via cfe-dev wrote:
> > IMO, the proper place to fix this is in the AST itself.  I would like
> > to see the AST node should provide an iterator API that allows you to
> > walk over all the identifiers (SourceLocation begin/end for each
> > identifier) in a single declaration and obtain their actual types:
> >
> > a -> long int
> > b -> long int *
> > c -> long int[10]
> > [...]
> Well, in a way, we do have this information, as part of QualType and 
> Type components of AST which I can access for these declarations.


> But the crux of the problem is the correct generation of removals in 
> FixIt hints.
> [...]
> This is where I need to know the locations where the cuts are to be made.

Yes, this is what I tried to find in the parser before, but I was
unsuccessful being unfamiliar with the parser code.
"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>

More information about the cfe-dev mailing list