[cfe-commits] Opening Parser internals for 3rd parties

Axel Naumann Axel.Naumann at cern.ch
Thu Aug 30 06:05:29 PDT 2012


Hi,

To implement (performant) string based lookup functionality we'd like to
call some Parser functions that are currently inaccessible. Attached
patch is one solution; we'd place the calls through a class deriving
from Parser. Making some key parsing functions (the ones we use :-)
public is another option.

Rationale: the public Parser interfaces do string -> AST node
operations; we do not want to create AST nodes nor do we even have valid
C++ code, think lookup("int") where "int" is not a valid C++ declaration
that the public Parser interfaces expect.

Cheers, Axel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-parser-private-to-protected.diff
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120830/f633ec84/attachment.bin>


More information about the cfe-commits mailing list