[libclang] Expose some target information via the C API.
authorEmilio Cobos Alvarez <emilio@crisal.io>
Fri, 28 Apr 2017 15:56:39 +0000 (15:56 +0000)
committerEmilio Cobos Alvarez <emilio@crisal.io>
Fri, 28 Apr 2017 15:56:39 +0000 (15:56 +0000)
commit485ad42521df7844c503deef0d4253f4e4ef53ff
treec5103e6b5d92ce416f4257ee694c7bbd6232eb93
parent499de32ad03af6877ca2ee0780530ee4721b4062
[libclang] Expose some target information via the C API.

This allows users to query the target triple and target pointer width, which
would make me able to fix https://github.com/servo/rust-bindgen/issues/593 and
other related bugs in an elegant way (without having to manually parse the
target triple in the command line arguments).

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

llvm-svn: 301648
clang/include/clang-c/Index.h
clang/test/Index/target-info.c [new file with mode: 0644]
clang/tools/c-index-test/c-index-test.c
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/CXTranslationUnit.h
clang/tools/libclang/libclang.exports