C++: Simplify Bind::asStringLiteral

Pass the expression directly

Change-Id: I44421fad0a0251641608d266fe681c05b3631064
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
This commit is contained in:
Orgad Shaneh
2015-06-10 23:26:38 +03:00
committed by Orgad Shaneh
parent 72a34d8359
commit a968940494
2 changed files with 18 additions and 34 deletions

View File

@@ -105,7 +105,7 @@ protected:
void capture(CaptureAST *ast);
Function *lambdaDeclarator(LambdaDeclaratorAST *ast);
FullySpecifiedType trailingReturnType(TrailingReturnTypeAST *ast, const FullySpecifiedType &init);
const StringLiteral *asStringLiteral(unsigned firstToken, unsigned lastToken);
const StringLiteral *asStringLiteral(const ExpressionAST *ast);
virtual bool preVisit(AST *);
virtual void postVisit(AST *);