xaizek / self-inc-first (License: GPLv2+) (since 2018-12-07)
Clang-based standalone tool that checks for first included file being self include.
Commit 01f26959025b88a85aac76094812c29337ac793e

Print warning for unknown header extensions
Author: xaizek
Author date (UTC): 2014-04-09 20:42
Committer name: xaizek
Committer date (UTC): 2014-04-09 20:42
Parent(s): dff645f34fbfb05ca3b45914e6e0abd80115c64b
Signing key:
Tree: c4f55df0c016a119eb5bf5039db2bd2d1f2977e7
File Lines added Lines deleted
src/IncludeFinderAction.cpp 6 2
File src/IncludeFinderAction.cpp changed (mode: 100644) (index e7554bd..9162045)
... ... IncludeFinder::diagnoseAndReport()
178 178 << hdrName << hdrName
179 179 << std::endl; << std::endl;
180 180 } }
181 } else {
182 std::cout << name
183 << ':'
184 << "unexpected extension: "
185 << nameParts.second
186 << std::endl;
181 187 } }
182 188 } }
183 189 } }
184 190
185
186 191 if (!selfInclude.second.empty() && !includes.empty()) { if (!selfInclude.second.empty() && !includes.empty()) {
187 192 if (includes[0] != selfInclude) { if (includes[0] != selfInclude) {
188 193 std::cout << name std::cout << name
 
... ... IncludeFinder::diagnoseAndReport()
193 198 << std::endl; << std::endl;
194 199 } }
195 200 } }
196
197 201 } }
198 202
199 203 inline void inline void
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/self-inc-first

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

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