llvm-project/lldb/test/expression_command
Sean Callanan bccce81340 Added support for persistent types to the
expression parser.  You can use a persistent
type like this:

(lldb) expr struct $foo { int a; int b; };
(lldb) struct $foo i; i.a = 2; i.b = 3; i
($foo) $0 = {
  (int) a = 2
  (int) b = 3
}

typedefs work similarly.

This patch affects the following files:

test/expression_command/persistent_types/*
  A test case for persistent types,
  in particular structs and typedefs.

ClangForward.h
  Added TypeDecl, needed to declare some
  functions in ASTResultSynthesizer.h

ClangPersistentVariables.[h,cpp]
  Added a list of persistent types to the
  persistent variable store.

ASTResultSynthesizer.[h,cpp]
  Made the AST result synthesizer iterate
  across TypeDecls in the expression, and
  record any persistent types found.  Also
  made a minor documentation fix.

ClangUserExpression.[h,cpp]
  Extended the user expression class to
  keep the state needed to report the
  persistent variable store for the target
  to the AST result synthesizers. 

  Also introduced a new error code for
  expressions that executed normally but
  did not return a result.

CommandObjectExpression.cpp
  Improved output for expressions (like 
  declarations of new persistent types) that
  don't return a result.  This is no longer
  treated as an error.

llvm-svn: 138383
2011-08-23 21:20:51 +00:00
..
call-function Add @expectedFailure for TestCallStdStringFunction.py (radar was filed) and 2011-06-28 19:39:19 +00:00
persistent_types Added support for persistent types to the 2011-08-23 21:20:51 +00:00
persistent_variables Change the golden output so that merely evaluating an existing persistent variable 2010-12-14 17:48:26 +00:00
radar_8638051 Remove @skip decorators for fixed crashes. 2010-11-30 22:34:19 +00:00
radar_9531204 Add regression test for rdar://problem/9531204. 2011-07-28 23:17:20 +00:00
radar_9673664 Remove the @expectedFailure decorator since the bug has been fixed. 2011-08-01 18:26:32 +00:00
test Cleaned up the SBType.h file to not include internal headers and reorganized 2011-08-03 22:57:10 +00:00
two-files More string matching criterion. 2011-05-10 22:46:13 +00:00