Author: Raphael Isemann Date: 2020-07-02T09:10:07+02:00 New Revision: 11b1eeeaec642052e7299181c6a087f68807ae8b
URL: https://github.com/llvm/llvm-project/commit/11b1eeeaec642052e7299181c6a087f68807ae8b DIFF: https://github.com/llvm/llvm-project/commit/11b1eeeaec642052e7299181c6a087f68807ae8b.diff LOG: [lldb][NFC] Fix a variable name in ClangDiagnosticManagerAdapter Added: Modified: lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp index 6b6346b69509..c8db6bb010f1 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp @@ -158,12 +158,12 @@ static void AddAllFixIts(ClangDiagnostic *diag, const clang::Diagnostic &Info) { class ClangDiagnosticManagerAdapter : public clang::DiagnosticConsumer { public: ClangDiagnosticManagerAdapter(DiagnosticOptions &opts) { - DiagnosticOptions *m_options = new DiagnosticOptions(opts); - m_options->ShowPresumedLoc = true; - m_options->ShowLevel = false; + DiagnosticOptions *options = new DiagnosticOptions(opts); + options->ShowPresumedLoc = true; + options->ShowLevel = false; m_os = std::make_shared<llvm::raw_string_ostream>(m_output); m_passthrough = - std::make_shared<clang::TextDiagnosticPrinter>(*m_os, m_options); + std::make_shared<clang::TextDiagnosticPrinter>(*m_os, options); } void ResetManager(DiagnosticManager *manager = nullptr) { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits