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 ce605202319bd868f79712915ff23205aa05e624

improve code formatting
Author: Raphael Knaus
Author date (UTC): 2018-01-15 20:55
Committer name: Raphael Knaus
Committer date (UTC): 2018-01-15 21:07
Parent(s): 851c7695a7adc62a5dbb0db7dffe4bff1b9388b9
Signing key:
Tree: 32ab91af9a1a764828e8032365b906208c57078b
File Lines added Lines deleted
src/Finder.cpp 1 2
src/unused-funcs.cpp 0 1
File src/Finder.cpp changed (mode: 100644) (index a654233..23175f8)
... ... void MatchHelper::registerRef(const Result &result,
93 93 } }
94 94 } }
95 95
96 } // namespace
96 } // namespace
97 97
98 98 class Finder::Impl { class Finder::Impl {
99 99 public: public:
100 100 Impl(); Impl();
101 101 ~Impl(); ~Impl();
102 102
103 public:
104 103 MatchFinder &getMatchFinder(); MatchFinder &getMatchFinder();
105 104
106 105 private: private:
File src/unused-funcs.cpp changed (mode: 100644) (index 5818833..8fe71b0)
... ... int main(int argc, const char *argv[]) {
43 43 ct::CommonOptionsParser optionsParser(argc, argv, toolCategory); ct::CommonOptionsParser optionsParser(argc, argv, toolCategory);
44 44 ct::ClangTool tool(optionsParser.getCompilations(), ct::ClangTool tool(optionsParser.getCompilations(),
45 45 optionsParser.getSourcePathList()); optionsParser.getSourcePathList());
46
47 46 CustomDiagnosticConsumer diagConsumer; CustomDiagnosticConsumer diagConsumer;
48 47 tool.setDiagnosticConsumer(&diagConsumer); tool.setDiagnosticConsumer(&diagConsumer);
49 48
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