This is an archive of the discontinued LLVM Phabricator instance.

Make DeletedLines local variables in checkEmptyNamespace.
ClosedPublic

Authored by ioeric on Oct 2 2016, 3:24 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric updated this revision to Diff 73215.Oct 2 2016, 3:24 AM
ioeric retitled this revision from to Make DeletedLines local variables in checkEmptyNamespace..
ioeric updated this object.
ioeric added a reviewer: djasper.
ioeric added a subscriber: cfe-commits.
ioeric updated this object.Oct 2 2016, 3:27 AM
djasper edited edge metadata.Oct 4 2016, 11:29 PM

I think we should add a test for why this was a problem. IIUC, this is caused by something like:

#if a
#else
#endif
namespace {
}

Because we actually analyze the whole thing twice.

ioeric updated this revision to Diff 73641.Oct 5 2016, 7:08 AM
ioeric edited edge metadata.
  • Added a test case.
djasper accepted this revision.Oct 5 2016, 8:00 AM
djasper edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Oct 5 2016, 8:00 AM
This revision was automatically updated to reflect the committed changes.