Lines Matching refs:avail
138 static std::string generateGuardCondition(const DeclarationAvailability& avail) { in generateGuardCondition() argument
160 D("Generating guard for availability: %s\n", to_string(avail).c_str()); in generateGuardCondition()
161 if (!avail.global_availability.empty()) { in generateGuardCondition()
163 if (!avail.arch_availability[arch].empty()) { in generateGuardCondition()
165 to_string(avail).c_str()); in generateGuardCondition()
169 if (avail.global_availability.introduced == 0) { in generateGuardCondition()
171 to_string(avail).c_str()); in generateGuardCondition()
175 if (avail.global_availability.introduced <= 9) { in generateGuardCondition()
179 return "__ANDROID_API__ >= "s + std::to_string(avail.global_availability.introduced); in generateGuardCondition()
188 int version = avail.arch_availability[*it.second.begin()].introduced; in generateGuardCondition()
197 if (avail.arch_availability[arch].introduced != version) { in generateGuardCondition()
223 int introduced = avail.arch_availability[it.first].introduced; in generateGuardCondition()
232 errx(1, "generated empty guard for availability %s", to_string(avail).c_str()); in generateGuardCondition()
372 DeclarationAvailability avail = current->second; in mergeGuards() local
377 std::tie(current, unused) = guard_map.insert(std::make_pair(merged, avail)); in mergeGuards()
387 const DeclarationAvailability& avail = it->second; in rewriteFile() local
389 std::string condition = generateGuardCondition(avail); in rewriteFile()