diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-09-11 14:33:11 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-09-11 14:33:11 +0000 |
| commit | 3ad8278737d042c6b5b61c0143ee68db66be91fe (patch) | |
| tree | 104da15fc1973caf0f786391ad39807e5aaba3f6 /lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | |
| parent | 1ccba7c1a106fa4921fabae769e5d6ca99c10f04 (diff) | |
| download | bcm5719-llvm-3ad8278737d042c6b5b61c0143ee68db66be91fe.tar.gz bcm5719-llvm-3ad8278737d042c6b5b61c0143ee68db66be91fe.zip | |
[lldb][NFC] Make include directories in Clang expression parser a std::string
We never compare these directories (where ConstString would be good) and
essentially just convert this back to a normal string in the end. So we might
as well just use std::string. Also makes it easier to unittest this code
(which was the main motivation for this change).
llvm-svn: 371623
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp index 54d852b2d83..57bf654528a 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp @@ -469,7 +469,7 @@ ClangUserExpression::GetModulesToImport(ExecutionContext &exe_ctx) { } for (const SourceModule &m : sc.comp_unit->GetImportedModules()) - m_include_directories.push_back(m.search_path); + m_include_directories.emplace_back(m.search_path.GetCString()); // Check if we imported 'std' or any of its submodules. // We currently don't support importing any other modules in the expression |

