[all-commits] [llvm/llvm-project] e881d8: Allow interfaces to operate on in-memory buffers w...

Tapasweni Pathak via All-commits all-commits at lists.llvm.org
Sun Jun 26 06:46:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e881d85371bf9b024e0668f1667fefde4df05711
      https://github.com/llvm/llvm-project/commit/e881d85371bf9b024e0668f1667fefde4df05711
  Author: Tapasweni Pathak <tapaswenipathak at gmail.com>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M clang/include/clang/Basic/SourceManager.h
    M clang/unittests/Basic/SourceManagerTest.cpp

  Log Message:
  -----------
  Allow interfaces to operate on in-memory buffers with no source location info.

This patch is a part of the upstreaming efforts. Cling has the ability to spawn
child interpreters (mainly for auto completions). The child interpreter import
Decls using the ASTImporter which casuses the assertion here
https://github.com/llvm/llvm-project/blob/65eb74e94b414fcde6bfa810d1c30c7fcb136b77/clang/include/clang/Basic/SourceLocation.h#L322

The patch is co-developed with V. Vassilev.

Differential revision: https://reviews.llvm.org/D88780




More information about the All-commits mailing list