hvaldecantos / gvarharmfulness

Are global variables harmful? An Empirical Study of Global Variables in C Language and their Relation to Bugs.
0 stars 0 forks source link

global variable classification #2

Open hvaldecantos opened 8 years ago

hvaldecantos commented 8 years ago

We have to classify the global variables found based on their purpose, the reasons why they were introduced in the project. For example, a typical use of a global variables is to hold a configuration value, some global state of progress. We have to come with a classification that has sense for all project, it should not be a project dependent classification.

ps2908 commented 8 years ago

@hvaldecantos Do u have a list based on which the global variable can be grouped? EXxample : iterator, flag, etc..?

hvaldecantos commented 8 years ago

Not yet, we have to define the types of global variables. Now I am cleaning the detected variables because I realized that ctags is considering as variables C macros definitions and assembly instructions (issues #4 and #5). You can start with the classification, if you see something that doesn't seem a global variable just add an issue.

ps2908 commented 8 years ago

Great! Okay..