]> granicus.if.org Git - clang/commit
ContentCache: Drop getBuffer's dependency on SourceManager
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 26 Aug 2019 20:32:05 +0000 (20:32 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 26 Aug 2019 20:32:05 +0000 (20:32 +0000)
commit6d8783fabd3a11785025e88a77b9efebec624f30
treed98eea45af667a08ebf9ca8066bcb2a2b7f0a03a
parent73df1642f1da4b987e3e26d278cc0163b7027ac2
ContentCache: Drop getBuffer's dependency on SourceManager

Refactor ContentCache::IsSystemFile to IsFileVolatile, checking
SourceManager::userFilesAreVolatile at construction time.  This is a
step toward lowering ContentCache down from SourceManager to
FileManager.

No functionality change intended.

https://reviews.llvm.org/D66713

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369958 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
lib/AST/ASTImporter.cpp
lib/Basic/SourceManager.cpp
lib/Serialization/ASTWriter.cpp