Lines Matching refs:guard_map
264 static void mergeGuards(std::deque<std::string>& file_lines, GuardMap& guard_map) { in mergeGuards() argument
265 if (guard_map.size() < 2) { in mergeGuards()
269 auto current = guard_map.begin(); in mergeGuards()
273 while (next != guard_map.end()) { in mergeGuards()
374 guard_map.erase(current); in mergeGuards()
375 guard_map.erase(next); in mergeGuards()
377 std::tie(current, unused) = guard_map.insert(std::make_pair(merged, avail)); in mergeGuards()
384 const GuardMap& guard_map) { in rewriteFile() argument
385 for (auto it = guard_map.rbegin(); it != guard_map.rend(); ++it) { in rewriteFile()
471 GuardMap guard_map; in preprocessHeaders() local
475 guard_map[loc] = it.second; in preprocessHeaders()
480 mergeGuards(file_lines[file_path.str()], guard_map); in preprocessHeaders()
490 rewriteFile(output_path, file_lines[file_path.str()], guard_map); in preprocessHeaders()