xaizek / for-postfix (License: GPLv2+) (since 2018-12-07)
Clang-based standalone tool that detects for-loops with postfix operators.
Commit 26acb3f484a316312494712f7bb7b38f927c27b4

Filter out prefix unary operators
Author: xaizek
Author date (UTC): 2014-03-23 21:58
Committer name: xaizek
Committer date (UTC): 2014-03-23 21:58
Parent(s): ea54ae2283a420605364476af59446a4dc82822f
Signing key:
Tree: 90eeb275ec0d19eb58109454b2f69483bb6cace6
File Lines added Lines deleted
for-postfix.cpp 4 2
File for-postfix.cpp changed (mode: 100644) (index 2eb68ca..36d62e6)
... ... public:
33 33 typedef UnaryOperator UnOp; typedef UnaryOperator UnOp;
34 34
35 35 if (const UnOp *op = result.Nodes.getNodeAs<UnOp>("op")) { if (const UnOp *op = result.Nodes.getNodeAs<UnOp>("op")) {
36 op->dump();
37 std::cout << '\n';
36 if (op->isPostfix()) {
37 op->dump();
38 std::cout << '\n';
39 }
38 40 } }
39 41 } }
40 42 }; };
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/for-postfix

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/for-postfix

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master