djasper added a comment. 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. https://reviews.llvm.org/D25162