[Lldb-commits] [PATCH] D143062: [lldb] Allow evaluating expressions in C++20 mode

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 1 13:11:36 PST 2023


aprantl added inline comments.


================
Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:548
+    [[fallthrough]];
   case lldb::eLanguageTypeC_plus_plus:
   case lldb::eLanguageTypeC_plus_plus_11:
----------------
Why no case C++17?


================
Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:551
   case lldb::eLanguageTypeC_plus_plus_14:
     lang_opts.CPlusPlus11 = true;
     m_compiler->getHeaderSearchOpts().UseLibcxx = true;
----------------
Why does this not set C++14? Because it's effectively equivalent?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143062/new/

https://reviews.llvm.org/D143062



More information about the lldb-commits mailing list