]> granicus.if.org Git - clang/commit
[libclang] Support querying whether a declaration is invalid
authorIvan Donchevskii <ivan.donchevskii@qt.io>
Thu, 4 Jan 2018 10:59:50 +0000 (10:59 +0000)
committerIvan Donchevskii <ivan.donchevskii@qt.io>
Thu, 4 Jan 2018 10:59:50 +0000 (10:59 +0000)
commit71928e1dab585f336f6d0fb337969eda00ccd19c
treeea1084cc3037d8f1107a80e3d76df78fc09b3eec
parentde6dd39fdb9873632f1b157ce0eb20867d9e31e4
[libclang] Support querying whether a declaration is invalid

This is useful for e.g. highlighting purposes in an IDE.

Note: First version of this patch was reverted due to failing tests in
opencl-types.cl with -target ppc64le-unknown-linux. These tests are
adapted now.

Patch by Nikolai Kosjar.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321794 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
test/Index/opencl-types.cl
test/Index/print-type-size.cpp
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp
tools/libclang/libclang.exports