Lines Matching defs:undef
711 static void reportUndefinedSymbol(const UndefinedDiag &undef,
713 Undefined &sym = *undef.sym;
750 for (UndefinedDiag::Loc l : undef.locs) {
758 // present) for the enclosing symbol (e.g. var in `int *a[] = {&undef};`).
767 if (i < undef.locs.size())
768 msg += ("\n>>> referenced " + Twine(undef.locs.size() - i) + " more times")
792 if (undef.isWarning)
802 for (UndefinedDiag &undef : undefs) {
803 assert(undef.locs.size() == 1);
804 if (UndefinedDiag *canon = firstRef.lookup(undef.sym)) {
805 canon->locs.push_back(undef.locs[0]);
806 undef.locs.clear();
808 firstRef[undef.sym] = &undef;
812 for (const auto &[i, undef] : llvm::enumerate(undefs))
813 if (!undef.locs.empty())
814 reportUndefinedSymbol(undef, i < 2);