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

Fix compilation with up-to-date clang
Author: xaizek
Author date (UTC): 2014-07-22 21:10
Committer name: xaizek
Committer date (UTC): 2014-07-22 21:10
Parent(s): bcf64ebab756553baea9fb641738db0da451b113
Signing key:
Tree: 49ca82b6ff3be1f3a32b1bf43fab214d316c86b8
File Lines added Lines deleted
for-postfix.cpp 2 1
File for-postfix.cpp changed (mode: 100644) (index 30c3a3a..bfca9c7)
23 23 #include <llvm/Support/CommandLine.h> #include <llvm/Support/CommandLine.h>
24 24
25 25 #include <clang/ASTMatchers/ASTMatchFinder.h> #include <clang/ASTMatchers/ASTMatchFinder.h>
26 #include <clang/ASTMatchers/ASTMatchers.h>
26 27
27 28 #include <clang/Tooling/CommonOptionsParser.h> #include <clang/Tooling/CommonOptionsParser.h>
28 29 #include <clang/Tooling/Tooling.h> #include <clang/Tooling/Tooling.h>
 
... ... main(int argc, const char *argv[])
110 111 finder.addMatcher(builtinMatcher, &helper); finder.addMatcher(builtinMatcher, &helper);
111 112 finder.addMatcher(opMatcher, &helper); finder.addMatcher(opMatcher, &helper);
112 113
113 return tool.run(newFrontendActionFactory(&finder));
114 return tool.run(newFrontendActionFactory(&finder).get());
114 115 } }
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