Skip to content
  • Douglas Gregor's avatar
    Updated IdentifierResolver to deal with DeclarationNames. The names of · ae2fbad3
    Douglas Gregor authored
    C++ constructors, destructors, and conversion functions now have a
    FETokenInfo field that IdentifierResolver can access, so that these
    special names are handled just like ordinary identifiers. A few other
    Sema routines now use DeclarationNames instead of IdentifierInfo*'s.
    
    To validate this design, this code also implements parsing and
    semantic analysis for id-expressions that name conversion functions,
    e.g.,
    
      return operator bool();
    
    The new parser action ActOnConversionFunctionExpr takes the result of
    parsing "operator type-id" and turning it into an expression, using
    the IdentifierResolver with the DeclarationName of the conversion
    function. ActOnDeclarator pushes those conversion function names into
    scope so that the IdentifierResolver can find them, of course.
    
    llvm-svn: 59462
    ae2fbad3
Loading