summaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-25 00:22:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-25 00:22:11 +0000
commit6c1d0ed3073befa254076905fcba299b73053250 (patch)
treeaa63a51883cd71cbe49ce945878405e89ea023f7 /include/clang/Basic/SourceManager.h
parent517791705e220b26bb307330fbb72566b516d095 (diff)
downloadclang-6c1d0ed3073befa254076905fcba299b73053250.tar.gz
Fix typo in comment in r312851.
Thanks to Nico Weber for pointing this out! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index a988283995..484889ea54 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -841,8 +841,8 @@ public:
/// Create a new FileID that represents the specified memory buffer.
///
- /// This does no caching of the buffer and takes ownership of the
- /// MemoryBuffer, so only pass a MemoryBuffer to this once.
+ /// This does not take ownership of the MemoryBuffer. The memory buffer must
+ /// outlive the SourceManager.
FileID createFileID(UnownedTag, const llvm::MemoryBuffer *Buffer,
SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User,
int LoadedID = 0, unsigned LoadedOffset = 0,