]> granicus.if.org Git - clang/commit
Extend the source manager with the ability to override the contents of
authorDouglas Gregor <dgregor@apple.com>
Wed, 2 Dec 2009 06:49:09 +0000 (06:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 2 Dec 2009 06:49:09 +0000 (06:49 +0000)
commit2968442603b029949246467253eeac8139a5b6d8
treeff548e890078ba6293daa74c947dcdf57c410798
parenta46e4d91d8f3eb341f2387768db66dcfe8dd0afa
Extend the source manager with the ability to override the contents of
files with the contents of an arbitrary memory buffer. Use this new
functionality to drastically clean up the way in which we handle file
truncation for code-completion: all of the truncation/completion logic
is now encapsulated in the preprocessor where it belongs
(<rdar://problem/7434737>).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90300 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
include/clang/Lex/Lexer.h
include/clang/Lex/Preprocessor.h
lib/Basic/SourceManager.cpp
lib/Frontend/CompilerInstance.cpp
lib/Lex/Lexer.cpp
lib/Lex/Preprocessor.cpp