[cfe-dev] Written name of conversion operator

Sean Hunt rideau3 at gmail.com
Fri Jun 4 23:33:53 PDT 2010


On 06/05/2010 12:26 AM, Abramo Bagnara wrote:
>      struct {
>        SourceLocation LQuoteLoc;
>        SourceLocation RQuoteLoc;
>        // Already in NamedDecl, *MemberExpr or *DeclRefExpr
>        // SourceLocation NameLoc;
>      } CXXLiteralOperatorName;

I'm not sure keeping the string's source location is important. It's 
required to be an empty string literal, so the only errors that can 
occur there are parse errors, which are caught before the 
DeclarationName is made. After that, the contents of the string are 
irrelevant, and the range is subsumed in the range of the operator 
keyword to the end of the identifier.

Sean



More information about the cfe-dev mailing list