| File unused-funcs.cpp changed (mode: 100644) (index 8017e1b..1d2728c) | 
	| 20 | 
	20 | 
	 | 
	 | 
	| 21 | 
	21 | 
	#include <llvm/Support/CommandLine.h> | 
	#include <llvm/Support/CommandLine.h> | 
	| 22 | 
	22 | 
	 | 
	 | 
	 | 
	23 | 
	 | 
	#include <clang/Basic/Diagnostic.h> | 
	 | 
	24 | 
	 | 
	 | 
	| 23 | 
	25 | 
	#include <clang/Tooling/CommonOptionsParser.h> | 
	#include <clang/Tooling/CommonOptionsParser.h> | 
	| 24 | 
	26 | 
	#include <clang/Tooling/Tooling.h> | 
	#include <clang/Tooling/Tooling.h> | 
	| 25 | 
	27 | 
	 | 
	 | 
|   | 
	| ... | 
	... | 
	main(int argc, const char *argv[]) | 
	| 38 | 
	40 | 
	    ClangTool tool(optionsParser.getCompilations(), | 
	    ClangTool tool(optionsParser.getCompilations(), | 
	| 39 | 
	41 | 
	                   optionsParser.getSourcePathList()); | 
	                   optionsParser.getSourcePathList()); | 
	| 40 | 
	42 | 
	 | 
	 | 
	| 41 | 
	 | 
	    Finder finder; | 
	 | 
	 | 
	43 | 
	 | 
	    class : public clang::DiagnosticConsumer | 
	 | 
	44 | 
	 | 
	    { | 
	 | 
	45 | 
	 | 
	    public: | 
	 | 
	46 | 
	 | 
	        virtual bool | 
	 | 
	47 | 
	 | 
	        IncludeInDiagnosticCounts() const | 
	 | 
	48 | 
	 | 
	        { | 
	 | 
	49 | 
	 | 
	            return false; | 
	 | 
	50 | 
	 | 
	        } | 
	 | 
	51 | 
	 | 
	    } diagConsumer; | 
	 | 
	52 | 
	 | 
	    tool.setDiagnosticConsumer(&diagConsumer); | 
	| 42 | 
	53 | 
	 | 
	 | 
	 | 
	54 | 
	 | 
	    Finder finder; | 
	| 43 | 
	55 | 
	    return tool.run(newFrontendActionFactory(&finder.getMatchFinder())); | 
	    return tool.run(newFrontendActionFactory(&finder.getMatchFinder())); | 
	| 44 | 
	56 | 
	} | 
	} |