llvm-project/lldb/source/Commands
Sean Callanan 863fab69a2 Expose top-level Clang expressions via the command line and the API.
Top-level Clang expressions are expressions that act as new translation units,
and define their own symbols.  They do not have function wrappers like regular
expressions do, and declarations are persistent regardless of use of the dollar
sign in identifiers.  Names defined by these are given priority over all other
symbol lookups.

This patch adds a new expression option, '-p' or '--top-level,' which controls
whether the expression is treated this way.  It also adds a flag controlling 
this to SBExpressionOptions so that this API is usable externally.  It also adds
a test that validates that this works.  (The test requires a fix to the Clang
AST importer which I will be committing shortly.)

<rdar://problem/22864976>

llvm-svn: 264662
2016-03-28 21:20:05 +00:00
..
CMakeLists.txt [cmake] Remove LLVM_NO_RTTI. 2015-09-03 08:46:55 +00:00
CommandCompletions.cpp Unicode support on Win32. 2016-03-22 17:58:09 +00:00
CommandObjectApropos.cpp Change 'apropos' such that it doesn't look into the "long help/syntax" strings for commands 2016-03-23 01:21:55 +00:00
CommandObjectApropos.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectArgs.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-19 19:33:46 +00:00
CommandObjectArgs.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectBreakpoint.cpp Add an "offset" option to "break set -n" and "break set -f -l". 2016-03-09 18:59:13 +00:00
CommandObjectBreakpoint.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectBreakpointCommand.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-19 19:33:46 +00:00
CommandObjectBreakpointCommand.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectBugreport.cpp commands: Use override instead of virtual. 2015-10-07 16:56:17 +00:00
CommandObjectBugreport.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectCommands.cpp Make it so that a command alias can actually remove the help/long help from its parent command by setting itself to an empty help string 2016-03-22 22:12:59 +00:00
CommandObjectCommands.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectDisassemble.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-20 00:58:29 +00:00
CommandObjectDisassemble.h Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-20 00:58:29 +00:00
CommandObjectExpression.cpp Expose top-level Clang expressions via the command line and the API. 2016-03-28 21:20:05 +00:00
CommandObjectExpression.h Expose top-level Clang expressions via the command line and the API. 2016-03-28 21:20:05 +00:00
CommandObjectFrame.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-19 19:33:46 +00:00
CommandObjectFrame.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectGUI.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
CommandObjectGUI.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectHelp.cpp Lots of progress on the CommandAlias refactoring 2016-03-14 22:17:04 +00:00
CommandObjectHelp.h When 'help' cannot find a command, produce additional help text that also points the user to the apropos and type lookup commands 2016-02-29 23:22:53 +00:00
CommandObjectLanguage.cpp Replace accidental DOS (and mixed) line endings in a few text files 2016-01-11 18:07:47 +00:00
CommandObjectLanguage.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectLog.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-20 00:58:29 +00:00
CommandObjectLog.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectMemory.cpp Handle any persistent Decl in the Clang expression parser, not just types. 2016-03-19 00:51:43 +00:00
CommandObjectMemory.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectMultiword.cpp Attempt to fix the Ubuntu buildbot by making FindLongestCommandWord a free template function in lldb_private 2016-03-08 03:48:41 +00:00
CommandObjectPlatform.cpp Get rid of a global constructor and also make this code safe to use after the global destructor chain has been run on the main thread. 2016-03-24 21:49:22 +00:00
CommandObjectPlatform.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectPlugin.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-20 00:58:29 +00:00
CommandObjectPlugin.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectProcess.cpp This change introduces a "ExpressionExecutionThread" to the ThreadList. 2016-03-12 02:45:34 +00:00
CommandObjectProcess.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectQuit.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
CommandObjectQuit.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectRegister.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-23 01:43:44 +00:00
CommandObjectRegister.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectSettings.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-24 02:05:55 +00:00
CommandObjectSettings.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectSource.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-24 02:05:55 +00:00
CommandObjectSource.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectSyntax.cpp When 'help' cannot find a command, produce additional help text that also points the user to the apropos and type lookup commands 2016-02-29 23:22:53 +00:00
CommandObjectSyntax.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectTarget.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in source/Commands/CommandObjectTarget.cpp; other minor fixes. 2016-02-25 19:02:39 +00:00
CommandObjectTarget.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectThread.cpp Fix deadlock due to thread list locking in 'bt all' with obj-c 2016-03-17 18:52:41 +00:00
CommandObjectThread.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectType.cpp Make it possible for language plugins to provide additional custom help for 'type lookup' 2016-03-24 23:06:42 +00:00
CommandObjectType.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectVersion.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
CommandObjectVersion.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectWatchpoint.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-24 02:05:55 +00:00
CommandObjectWatchpoint.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00
CommandObjectWatchpointCommand.cpp Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. 2016-02-23 01:43:44 +00:00
CommandObjectWatchpointCommand.h Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify closing inclusion guards 2015-09-02 09:33:09 +00:00