]> granicus.if.org Git - clang/commit
[libclang] Add function to get the buffer for a file
authorErik Verbruggen <erikjv@me.com>
Wed, 6 Dec 2017 09:02:52 +0000 (09:02 +0000)
committerErik Verbruggen <erikjv@me.com>
Wed, 6 Dec 2017 09:02:52 +0000 (09:02 +0000)
commit0a795a46dcfa5d1e413d5ee1fafda620dedeeee1
treeafdea0c7f5dfa777783607f0802add8bb6c3e1f4
parente792818a7bc14878111ee3145ca030e24109a4f1
[libclang] Add function to get the buffer for a file

This can be used by clients in conjunction with an offset returned by
e.g. clang_getFileLocation. Now those clients do not need to also
open/read the file.

Differential Revision: https://reviews.llvm.org/D40643

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319881 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
tools/libclang/CIndex.cpp