]> granicus.if.org Git - clang/commit
Teach SourceManager's content cache to keep track of whether its
authorDouglas Gregor <dgregor@apple.com>
Tue, 16 Mar 2010 22:53:51 +0000 (22:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 16 Mar 2010 22:53:51 +0000 (22:53 +0000)
commitc815108d08b0417c6f1104e7df70dc5278839406
tree42fa24ee20398728edde29352a3572051bc69f40
parent453091cc2082e207ea2c2dda645a9bc01b37fb0c
Teach SourceManager's content cache to keep track of whether its
buffer was invalid when it was created, and use that bit to always set
the "Invalid" flag according to whether the buffer is invalid. This
ensures that all accesses to an invalid buffer are marked invalid,
improving recovery.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98690 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp
test/PCH/changed-files.c