Filter out inline asm and handle nested namespaces.