Re: Using Clang infrastructure to generate semantic databases

David Engster <[email protected]> Tue, 26 May 2015 21:44:36 +0200
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Marco Craveiro writes:
> Please note that I am not proposing some intermediate file format or
> accessing the AST directly as mentioned in other discussions[1];
> instead, I am thinking of an executable that, given a hpp or cpp file,
> generates the corresponding semantic cache files. These files are
> expected to be identical to those that would have been generated by
> semantic itself (within reason, such as ordering, etc). The tool would
> receive a path to the compilation database with all of the required
> configuration.
>
> Has anyone done such a thing - or are there reasons why this would not work?

I'm planning to do this. What you are proposing would indeed be a first
step: creating the same tables that our current Bovine parser produces,
which is what we call a "tagging parser". Later on I would want to
extend this to full parsing, which would then also be closer to the AST.

-David

------------------------------------------------------------------------------