diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-16 17:23:01 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-16 17:23:01 +0000 |
commit | a4ba244cd4729b72b7b0be67493ea36618545790 (patch) | |
tree | 2d3bc5181b5b1a5c474368850dd6e26dadca7a1f /unittests | |
parent | 54cfbfb870a2f83429e183b382a4e9d0c1335421 (diff) | |
download | clang-a4ba244cd4729b72b7b0be67493ea36618545790.tar.gz clang-a4ba244cd4729b72b7b0be67493ea36618545790.tar.bz2 clang-a4ba244cd4729b72b7b0be67493ea36618545790.tar.xz |
Rename SourceManager::createFileIDForMemBuffer()
It makes more sense to just overload createFileID().
Gardening only.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/AST/CommentLexer.cpp | 2 | ||||
-rw-r--r-- | unittests/AST/CommentParser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unittests/AST/CommentLexer.cpp b/unittests/AST/CommentLexer.cpp index fc0fd77275..cb8de27180 100644 --- a/unittests/AST/CommentLexer.cpp +++ b/unittests/AST/CommentLexer.cpp @@ -61,7 +61,7 @@ protected: void CommentLexerTest::lexString(const char *Source, std::vector<Token> &Toks) { MemoryBuffer *Buf = MemoryBuffer::getMemBuffer(Source); - FileID File = SourceMgr.createFileIDForMemBuffer(Buf); + FileID File = SourceMgr.createFileID(Buf); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); diff --git a/unittests/AST/CommentParser.cpp b/unittests/AST/CommentParser.cpp index c72aef107f..0064078d86 100644 --- a/unittests/AST/CommentParser.cpp +++ b/unittests/AST/CommentParser.cpp @@ -55,7 +55,7 @@ protected: FullComment *CommentParserTest::parseString(const char *Source) { MemoryBuffer *Buf = MemoryBuffer::getMemBuffer(Source); - FileID File = SourceMgr.createFileIDForMemBuffer(Buf); + FileID File = SourceMgr.createFileID(Buf); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); |