Fix to respect uniform/varying qualifiers inside of typedefs.

This commit is contained in:
james.brodman
2013-08-30 14:13:08 -04:00
parent c1cc80b1d5
commit 97d430d5cd
3 changed files with 40 additions and 2 deletions

11
sym.cpp
View File

@@ -214,6 +214,17 @@ SymbolTable::LookupType(const char *name) const {
return NULL;
}
bool
SymbolTable::ContainsType(const Type *type) const {
TypeMapType::const_iterator iter = types.begin();
while (iter != types.end()) {
if (iter->second == type) {
return true;
}
iter++;
}
return false;
}
std::vector<std::string>
SymbolTable::ClosestVariableOrFunctionMatch(const char *str) const {