xaizek / unused-funcs (License: GPLv2+) (since 2018-12-07)
Clang-based standalone tool that detects unused external functions in a set of source files.
Commit 851c7695a7adc62a5dbb0db7dffe4bff1b9388b9

initialize member in-class
Author: Raphael Knaus
Author date (UTC): 2018-01-15 20:53
Committer name: Raphael Knaus
Committer date (UTC): 2018-01-15 21:07
Parent(s): 6540409d65f1d672f1445508253b408b10ca7dd2
Signing key:
Tree: d41ee0aa46606841eeca769c1e967c5a2e676d2f
File Lines added Lines deleted
src/FuncInfo.cpp 1 1
src/FuncInfo.hpp 1 1
File src/FuncInfo.cpp changed (mode: 100644) (index 1e60f05..1aa4dfa)
27 27
28 28 FuncInfo::FuncInfo(const clang::FunctionDecl *func, FuncInfo::FuncInfo(const clang::FunctionDecl *func,
29 29 const clang::SourceManager *sm) const clang::SourceManager *sm)
30 : name(func->getNameAsString()), lineNum(0U) {
30 : name(func->getNameAsString()) {
31 31 processDeclaration(func, sm); processDeclaration(func, sm);
32 32 } }
33 33
File src/FuncInfo.hpp changed (mode: 100644) (index f457706..b0fbc7f)
... ... public:
53 53 private: private:
54 54 const std::string name; const std::string name;
55 55 std::string fileName; std::string fileName;
56 unsigned int lineNum;
56 unsigned int lineNum {0};
57 57 typedef std::vector<RefInfo> Refs; typedef std::vector<RefInfo> Refs;
58 58 Refs calls; Refs calls;
59 59 }; };
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/unused-funcs

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

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