]> granicus.if.org Git - clang/commit
FileManager: Factor duplicated code in getBufferForFile, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 25 Aug 2019 01:18:35 +0000 (01:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 25 Aug 2019 01:18:35 +0000 (01:18 +0000)
commit3072453d59e7c8583d2d38379696448e37476f53
tree255244247762eae147f4b625574824f415770906
parent838d250a16cebc2f19ed3a8d14d9625279ae9f3c
FileManager: Factor duplicated code in getBufferForFile, NFC

Incidentally, this also unifies the two versions (removing an
unnecessary call to `SmallString::c_str`).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369861 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/FileManager.h
lib/Basic/FileManager.cpp