HomePhabricator

[libclang] Add function to get the buffer for a file

Authored by erikjv on Dec 6 2017, 1:02 AM.

Description

[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

llvm-svn: 319881

Details