1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
7 * This file is distributed under the University of Illinois Open Source
8 * License. See LICENSE.TXT for details.
12 #ifndef POSTFIXINCREMENTFIX_H
13 #define POSTFIXINCREMENTFIX_H
20 class PostfixIncrementFix
21 : public RecursiveASTVisitor
< PostfixIncrementFix
>
22 , public RewritePlugin
25 explicit PostfixIncrementFix( const InstantiationData
& data
);
26 virtual void run() override
;
27 bool VisitCXXOperatorCallExpr( const CXXOperatorCallExpr
* op
);
29 void fixPostfixOperator( const CXXOperatorCallExpr
* op
);
30 void fixPostfixOperators( const Stmt
* stmt
);
31 bool canChangePostfixToPrefix( const Stmt
* stmt
, const CXXOperatorCallExpr
* op
);
32 bool shouldDoChange( const Expr
* op
);
37 #endif // POSTFIXINCREMENTFIX_H
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */