diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 19:47:53 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 19:47:53 +0000 |
commit | 39ec6e70490e6ea38fd113c0972069a1252d9f32 (patch) | |
tree | 160f2fc722e5638b5bb9d58e43ac9214d187b4e2 | |
parent | 6b34051b3370b409e9081345b98005cb43b0a22e (diff) | |
download | bcm5719-llvm-39ec6e70490e6ea38fd113c0972069a1252d9f32.tar.gz bcm5719-llvm-39ec6e70490e6ea38fd113c0972069a1252d9f32.zip |
Fixed code style for the CodeCompletion members [NFC]
This code is in LLDB, so it should also follow the LLDB code style
and use the m_ prefix for members.
llvm-svn: 341105
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index cfd5d9be111..c79cb188d85 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp @@ -558,11 +558,11 @@ namespace { /// of an incomplete `expr` invocation. //---------------------------------------------------------------------- class CodeComplete : public CodeCompleteConsumer { - CodeCompletionTUInfo CCTUInfo; + CodeCompletionTUInfo m_info; - std::string expr; - unsigned position = 0; - StringList &matches; + std::string m_expr; + unsigned m_position = 0; + StringList &m_matches; /// Returns true if the given character can be used in an identifier. /// This also returns true for numbers because for completion we usually @@ -639,8 +639,8 @@ public: /// CodeComplete(StringList &matches, std::string expr, unsigned position) : CodeCompleteConsumer(CodeCompleteOptions(), false), - CCTUInfo(std::make_shared<GlobalCodeCompletionAllocator>()), expr(expr), - position(position), matches(matches) {} + m_info(std::make_shared<GlobalCodeCompletionAllocator>()), m_expr(expr), + m_position(position), m_matches(matches) {} /// Deregisters and destroys this code-completion consumer. virtual ~CodeComplete() {} @@ -734,8 +734,8 @@ public: // Merge the suggested Token into the existing command line to comply // with the kind of result the lldb API expects. std::string CompletionSuggestion = - mergeCompletion(expr, position, ToInsert); - matches.AppendString(CompletionSuggestion); + mergeCompletion(m_expr, m_position, ToInsert); + m_matches.AppendString(CompletionSuggestion); } } } @@ -756,10 +756,10 @@ public: } CodeCompletionAllocator &getAllocator() override { - return CCTUInfo.getAllocator(); + return m_info.getAllocator(); } - CodeCompletionTUInfo &getCodeCompletionTUInfo() override { return CCTUInfo; } + CodeCompletionTUInfo &getCodeCompletionTUInfo() override { return m_info; } }; } // namespace |