[all-commits] [llvm/llvm-project] c95a0c: [lldb] Fix the way we set up the lldb modules infr...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Sun Dec 4 23:39:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c95a0c91c0de66eb1066f23c69332522656f188e
      https://github.com/llvm/llvm-project/commit/c95a0c91c0de66eb1066f23c69332522656f188e
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
    M lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py

  Log Message:
  -----------
  [lldb] Fix the way we set up the lldb modules infrastructure.

D127284 introduced a new language option which is not benign from modules
perspective. Before this patch lldb would set up the compiler invocation and
later enable incremental processing. Post-D127284 this does not work because
the option causes a module hash mismatch for implicit modules.

In addition, D127284 enables parsing statements on the global scope if
incremental processing is on and thus `syntax_error_for_lldb_to_find` was
rightfully not recognized as a declaration and is considered a statement
which produces a slightly different diagnostic.

Thanks to Michael Buch for the help in understanding this issue. This patch
should appease the lldb bots.

More discussion available at: https://reviews.llvm.org/D127284




More information about the All-commits mailing list