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

Tapasweni Pathak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 28 11:33:49 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 subscriber: cfe-commits.

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

      

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

      

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

It addresses all review comments of https://reviews.llvm.org/D88780.

Ref: https://reviews.llvm.org/D126271.

      

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126600

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126600.432743.patch
Type: text/x-patch
Size: 5518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220528/b1796d59/attachment-0001.bin>


More information about the cfe-commits mailing list