|
LLDB mainline
|
Holds an lldb_private::Module name and a "sanitized" version of it for the purposes of loading a script of that name by the relevant ScriptInterpreter. More...
#include <ScriptInterpreter.h>
Public Member Functions | |
| SanitizedScriptingModuleName (std::string name, std::string sanitized_name, std::string conflicting_keyword) | |
| bool | IsKeyword () const |
Returns true if this name is a keyword in the associated scripting language. | |
| bool | RequiredSanitization () const |
Returns true if the original name has been sanitized (i.e., required changes). | |
| llvm::StringRef | GetSanitizedName () const |
| llvm::StringRef | GetOriginalName () const |
| llvm::StringRef | GetConflictingKeyword () const |
Private Attributes | |
| std::string | m_original_name |
| std::string | m_sanitized_name |
| std::string | m_conflicting_keyword |
| If the m_sanitized_name conflicts with a keyword for the ScriptInterpreter language associated with this SanitizedScriptingModuleName, is set to the conflicting keyword. | |
Holds an lldb_private::Module name and a "sanitized" version of it for the purposes of loading a script of that name by the relevant ScriptInterpreter.
E.g., for Python the sanitized name can't include:
Definition at line 582 of file ScriptInterpreter.h.
|
inline |
Definition at line 584 of file ScriptInterpreter.h.
References m_conflicting_keyword, m_original_name, and m_sanitized_name.
|
inline |
Definition at line 602 of file ScriptInterpreter.h.
References m_conflicting_keyword.
Referenced by lldb_private::Platform::WarnIfInvalidUnsanitizedScriptExists().
|
inline |
Definition at line 601 of file ScriptInterpreter.h.
References m_original_name.
Referenced by lldb_private::PlatformDarwin::LocateExecutableScriptingResourcesFromDSYM(), and lldb_private::Platform::LocateExecutableScriptingResourcesFromSafePaths().
|
inline |
Definition at line 600 of file ScriptInterpreter.h.
References m_sanitized_name.
Referenced by lldb_private::PlatformDarwin::LocateExecutableScriptingResourcesFromDSYM(), and lldb_private::Platform::LocateExecutableScriptingResourcesFromSafePaths().
|
inline |
Returns true if this name is a keyword in the associated scripting language.
Definition at line 592 of file ScriptInterpreter.h.
References m_conflicting_keyword.
Referenced by lldb_private::Platform::WarnIfInvalidUnsanitizedScriptExists().
|
inline |
Returns true if the original name has been sanitized (i.e., required changes).
Definition at line 596 of file ScriptInterpreter.h.
References m_original_name, and m_sanitized_name.
Referenced by lldb_private::Platform::WarnIfInvalidUnsanitizedScriptExists().
|
private |
If the m_sanitized_name conflicts with a keyword for the ScriptInterpreter language associated with this SanitizedScriptingModuleName, is set to the conflicting keyword.
Empty otherwise.
Definition at line 614 of file ScriptInterpreter.h.
Referenced by GetConflictingKeyword(), IsKeyword(), and SanitizedScriptingModuleName().
|
private |
Definition at line 607 of file ScriptInterpreter.h.
Referenced by GetOriginalName(), RequiredSanitization(), and SanitizedScriptingModuleName().
|
private |
Definition at line 608 of file ScriptInterpreter.h.
Referenced by GetSanitizedName(), RequiredSanitization(), and SanitizedScriptingModuleName().