| 1117 | } |
| 1118 | |
| 1119 | bool |
| 1120 | Variable::is_seen_name(vector<std::string> &seen_names, const std::string &name) const |
| 1121 | { |
| 1122 | for (vector<string>::iterator i = seen_names.begin(); i != seen_names.end(); ++i) { |
| 1123 | std::string n = (*i); |
| 1124 | n += "["; |
| 1125 | if (!name.compare(0, n.length(), n)) { |
| 1126 | return true; |
| 1127 | } |
| 1128 | } |
| 1129 | return false; |
| 1130 | } |
| 1131 | |
| 1132 | bool |
| 1133 | Variable::is_valid_volatile(void) const |