[PATCH] D88780: 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:44:04 PDT 2022


tapaswenipathak updated this revision to Diff 432746.
tapaswenipathak added a comment.

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

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

https://reviews.llvm.org/D88780

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

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


More information about the cfe-commits mailing list