This is more efficient and avoids data races when reading files that
come from the preamble. The staleness can occur when reading a file
from disk that changed after the preamble was built. This can lead to
crashes, e.g. when parsing comments.
We do not to rely on symbols from the main file anyway, since any info
that those provide can always be taken from the AST.
Would this give us decls in namespaces? It seems that AST.getTranslationUnitDecl()->decls() are only decls that are immediately inside the TU context.