ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlobalVarAnalysis.h
Go to the documentation of this file.
1 /******************************************
2  * Category: DFA
3  * GlobalVar Analysis Declaration
4  * created by tps in Feb 2007
5  *****************************************/
6 
7 #ifndef __GlobalVarAnalysis_HXX_LOADED__
8 #define __GlobalVarAnalysis_HXX_LOADED__
9 #include <string>
10 
11 #include "DefUseAnalysis.h"
12 
14  private:
17  bool DEBUG_MODE;
18 
19  // local functions -------------------
20  bool isGlobalVar(SgInitializedName* initName);
21  bool isFromLibrary(SgInitializedName* initName);
22 
23  public:
24  GlobalVarAnalysis(bool debug,SgProject* proj, DefUseAnalysis* analysis) {project = proj;dfa = analysis; DEBUG_MODE=debug;};
25 
26  // def-use-public-functions -----------
27  std::vector<SgInitializedName*> run();
28 
29 
30 };
31 
32 #endif