[PATCH] D126271: Allow interfaces to operate on in-memory buffers with no source location info.

Tapasweni Pathak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 21:20:12 PDT 2022


tapaswenipathak created this revision.
tapaswenipathak added a reviewer: v.g.vassilev.
tapaswenipathak added a project: clang.
Herald added a project: All.
tapaswenipathak requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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

      

This patch avoid an assert PresumedLoc::getFilename if it is invalid.

      

Add unittests for allowing interface to operate on in-memory buffers with no
source location info.

      

Co-authored-by: Vassil Vassilev <vvasilev at cern.ch>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126271

Files:
  include/clang/Basic/SourceManager.h
  unittests/Basic/SourceManagerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126271.431582.patch
Type: text/x-patch
Size: 4604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220524/022592ec/attachment.bin>


More information about the llvm-commits mailing list