A Fix for Bug 19238.
Function static variable defined inside a lexical scope, same as typedef and record (class, struct or union), which are declared inside a lexical scope, were all associated to the function as its parent scope, rather than to the lexical scope they are defined or declared inside.
This patch provides a fix for all these three cases in the Clang debug info generation.
This patch is related to "D9758"
This could be refactored into a 'getDeclarationLexicalScope' method, as the companion to 'recordDeclarationLexicalScope'.