llvm-project/lldb/source
Sean Callanan c02a1c0312 [Expression parser] Return both types and variables
Many times a user wants to access a type when there's a variable of
the same name, or a variable when there's a type of the same name.
Depending on the precise context, currently the expression parser
can fail to resolve one or the other.

This is because ClangExpressionDeclMap has logic to limit the
amount of information it searches, and that logic sometimes cuts
down the search prematurely. This patch removes some of those early
exits.

In that sense, this patch trades performance (early exit is faster)
for correctness.

I've also included two new test cases showing examples of this
behavior – as well as modifying an existing test case that gets it
wrong.

llvm-svn: 301273
2017-04-24 23:14:04 +00:00
..
API Teach SBFrame how to guess its language. 2017-04-12 00:19:54 +00:00
Breakpoint iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
Commands Fix !N and !-N commands and add a test case. 2017-04-19 23:21:04 +00:00
Core Changed a use of APInt::getSignBit to APInt::getSignMask. 2017-04-20 18:07:51 +00:00
DataFormatters Stop calling ValueObject::SetName from synthetic child providers 2017-03-31 20:48:00 +00:00
Expression Add CopyDiagnostic to the DiagnosticManager. 2017-04-19 18:56:44 +00:00
Host Add more arguments to SocketAddress::GetAddressInfo 2017-04-24 09:39:56 +00:00
Initialization Enable ProcessPOSIXLog on NetBSD 2017-03-21 17:26:55 +00:00
Interpreter Fix !N and !-N commands and add a test case. 2017-04-19 23:21:04 +00:00
Plugins [Expression parser] Return both types and variables 2017-04-24 23:14:04 +00:00
Symbol [ClangASTContext] Placate `casts away qualifiers` warnings from GCC. 2017-04-17 18:24:18 +00:00
Target Teach SBFrame how to guess its language. 2017-04-12 00:19:54 +00:00
Utility [Utility/StringLexer] Remove dead code. 2017-04-19 18:18:25 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00