[cfe-commits] r171267 - in /cfe/trunk: lib/Sema/Sema.cpp test/SemaCXX/warn-unused-filescoped.cpp

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Dec 31 06:05:55 PST 2012


> How did these elements even end up in the UnusedFileScopedDecls  ?
> shouldn't we just ensure that they're not added there to begin with?

The problem is corner cases like

  typedef struct {
    void bar();
  } A;

bar will have external linkage, but we only know that when we get to
the 'A', by that time it is already in UnusedFileScopedDecls.

Cheers,
Rafael



More information about the cfe-commits mailing list