[libclang] Extend clang_Cursor_Evaluate().
authorChristian Kandeler <christian.kandeler@qt.io>
Wed, 24 Jun 2020 10:56:45 +0000 (11:56 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 24 Jun 2020 10:58:39 +0000 (11:58 +0100)
commit72131423cc952ccbd6d8e021ff7c04fa22297fe3
tree88918e3d46381889d70a43ece1d23fa013273486
parent05e10ee0aee02dd3ff30f59a0b5e1faa2d5a21a0
[libclang] Extend clang_Cursor_Evaluate().

Let this function (try to) evaluate expressions, in addition to
declarations and compound statements.

Patch by Christian Kandeler <christian.kandeler@qt.io>

Reviewers: nik, akyrtzi, arphaman, jkorous

Reviewed By: jkorous

Differential Revision: https://reviews.llvm.org/D80279
clang/include/clang-c/Index.h
clang/test/Index/evaluate-cursor.cpp
clang/tools/libclang/CIndex.cpp