]> granicus.if.org Git - clang/commit
[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)
commit1b98417fe9692b0550e51a763a961344110adf99
tree14dd66e078ae399f90710f48a312554ea70fc267
parentde4f6266fade0d8f77731f96f027c7a10b6f36e2
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301648 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
test/Index/target-info.c [new file with mode: 0644]
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp
tools/libclang/CXTranslationUnit.h
tools/libclang/libclang.exports