llvm-project/lldb/source/Plugins/ExpressionParser/Clang
Sean Callanan 9c99faa856 [Expression parser] Look up module symbols before hunting globally
When it resolves symbol-only variables, the expression parser
currently looks only in the global module list. It should prefer
the current module.

I've fixed that behavior by making it search the current module
first, and only search globally if it finds nothing. I've also
added a test case.

After review, I moved the core of the lookup algorithm into
SymbolContext for use by other code that needs it.

Thanks to Greg Clayton and Pavel Labath for their help.

Differential Revision: https://reviews.llvm.org/D33083

llvm-svn: 303223
2017-05-16 23:46:13 +00:00
..
ASTDumper.cpp Move Log from Core -> Utility. 2017-03-03 20:56:28 +00:00
ASTDumper.h Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
ASTResultSynthesizer.cpp Move Log from Core -> Utility. 2017-03-03 20:56:28 +00:00
ASTResultSynthesizer.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ASTStructExtractor.cpp Move Log from Core -> Utility. 2017-03-03 20:56:28 +00:00
ASTStructExtractor.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CMakeLists.txt [CMake] [1/4] Update a batch of plugins 2017-01-31 22:21:19 +00:00
ClangASTSource.cpp Fixed a bug where we did not properly use the complete versions of Objective-C classes. 2017-05-03 00:41:43 +00:00
ClangASTSource.h Remove an invalid doxygen `@return` docstring on a void function 2016-09-21 11:12:50 +00:00
ClangDiagnostic.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ClangExpressionDeclMap.cpp [Expression parser] Look up module symbols before hunting globally 2017-05-16 23:46:13 +00:00
ClangExpressionDeclMap.h [Expression parser] Look up module symbols before hunting globally 2017-05-16 23:46:13 +00:00
ClangExpressionHelper.h [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
ClangExpressionParser.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ClangExpressionParser.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ClangExpressionVariable.cpp Move DataBuffer / DataExtractor and friends from Core -> Utility. 2017-03-04 01:30:05 +00:00
ClangExpressionVariable.h Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
ClangFunctionCaller.cpp Move DataBuffer / DataExtractor and friends from Core -> Utility. 2017-03-04 01:30:05 +00:00
ClangFunctionCaller.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ClangModulesDeclVendor.cpp Move FileSpec from Host -> Utility. 2017-03-22 18:40:07 +00:00
ClangModulesDeclVendor.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ClangPersistentVariables.cpp Move DataBuffer / DataExtractor and friends from Core -> Utility. 2017-03-04 01:30:05 +00:00
ClangPersistentVariables.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ClangUserExpression.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ClangUserExpression.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ClangUtilityFunction.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ClangUtilityFunction.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
IRForTarget.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
IRForTarget.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00