Lines Matching refs:avail
139 static std::string generateGuardCondition(const DeclarationAvailability& avail) { in generateGuardCondition() argument
161 D("Generating guard for availability: %s\n", to_string(avail).c_str()); in generateGuardCondition()
162 if (!avail.global_availability.empty()) { in generateGuardCondition()
164 if (!avail.arch_availability[arch].empty()) { in generateGuardCondition()
166 to_string(avail).c_str()); in generateGuardCondition()
170 if (avail.global_availability.introduced == 0) { in generateGuardCondition()
175 to_string(avail).c_str()); in generateGuardCondition()
179 if (avail.global_availability.introduced <= 9) { in generateGuardCondition()
183 return "__ANDROID_API__ >= "s + std::to_string(avail.global_availability.introduced); in generateGuardCondition()
197 const int arch_version = avail.arch_availability[arch].introduced; in generateGuardCondition()
214 const int arch_version = avail.arch_availability[arch].introduced; in generateGuardCondition()
237 int introduced = avail.arch_availability[it.first].introduced; in generateGuardCondition()
242 errx(1, "generated empty guard for availability %s", to_string(avail).c_str()); in generateGuardCondition()
382 DeclarationAvailability avail = current->second; in mergeGuards() local
387 std::tie(current, unused) = guard_map.insert(std::make_pair(merged, avail)); in mergeGuards()
397 const DeclarationAvailability& avail = it->second; in rewriteFile() local
399 std::string condition = generateGuardCondition(avail); in rewriteFile()