[PATCH] Parse: Do not 'HandleTopLevelDecl' on templated functions.

Richard Smith richard at metafoo.co.uk
Thu Aug 15 15:40:39 PDT 2013


  LGTM

  We're going to want an `ASTConsumer` callback for handling the parsing of late-parsed templates eventually (for instance, libclang's `ASTConsumer` looks like it would benefit from that). But that callback should not be `HandleTopLevelDecl`, since a late-parsed template isn't necessarily top-level (and we don't want to defer calling `HandleTopLevelDecl` for class templates that happen to contain late-parsed function templates, and so on).

http://llvm-reviews.chandlerc.com/D1412

BRANCH
  PR16887

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list