1 #ifndef STATS_MANAGER_H 2 #define STATS_MANAGER_H 6 #include "clang/AST/ASTConsumer.h" 7 #include "clang/AST/RecursiveASTVisitor.h" 8 #include "clang/AST/Stmt.h" 30 static int NumOfWords;
31 static int NumOfStatements;
32 static int NumOfFunctions;
45 void Initialize(clang::ASTContext &Ctx);
52 class StatsVisitor :
public clang::RecursiveASTVisitor<StatsVisitor> {
60 #endif // STATS_MANAGER_H static bool isCountableStatement(clang::Stmt *S)
Definition: StatsManager.cpp:36
StatsVisitor()
Definition: StatsManager.h:54
clang::DeclGroupRef DeclGroupRef
Definition: LocalReduction.cpp:16
~StatsComputer()
Definition: StatsManager.h:42
Definition: StatsManager.h:37
clang::Stmt Stmt
Definition: LocalReduction.cpp:25
static void ComputeStats(std::string &FileName)
Definition: StatsManager.cpp:13
static void IncreaseNumOfStatements()
Definition: StatsManager.cpp:34
clang::FunctionDecl FunctionDecl
Definition: LocalReduction.cpp:18
static void Print()
Definition: StatsManager.cpp:27
Definition: StatsManager.h:52
static void IncreaseNumOfFunctions()
Definition: StatsManager.cpp:32
static int GetNumOfFunctions()
Definition: StatsManager.h:18
StatsComputer()
Definition: StatsManager.h:41
static int GetNumOfWords()
Definition: StatsManager.h:16
static int GetNumOfStatements()
Definition: StatsManager.h:17
Responsible for computing statistical information for a file.
Definition: StatsManager.h:11