ROSE
0.9.6a
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
13
class
GlobalVarAnalysis
{
14
private
:
15
SgProject
*
project
;
16
DefUseAnalysis
*
dfa
;
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
rose-edg4x
src
midend
programAnalysis
defUseAnalysis
GlobalVarAnalysis.h
Generated on Mon May 5 2014 17:29:23 for ROSE by
1.8.4