Lines Matching defs:undef
685 static void reportUndefinedSymbol(Ctx &ctx, const UndefinedDiag &undef,
687 Undefined &sym = *undef.sym;
724 ArrayRef(undef.locs).take_front(maxUndefReferences)) {
730 // present) for the enclosing symbol (e.g. var in `int *a[] = {&undef};`).
741 if (maxUndefReferences < undef.locs.size())
742 msg << "\n>>> referenced " << (undef.locs.size() - maxUndefReferences)
765 if (undef.isWarning)
775 for (UndefinedDiag &undef : ctx.undefErrs) {
776 assert(undef.locs.size() == 1);
777 if (UndefinedDiag *canon = firstRef.lookup(undef.sym)) {
778 canon->locs.push_back(undef.locs[0]);
779 undef.locs.clear();
781 firstRef[undef.sym] = &undef;
785 for (auto [i, undef] : llvm::enumerate(ctx.undefErrs))
786 if (!undef.locs.empty())
787 reportUndefinedSymbol(ctx, undef, i < 2);