This allows evaluating array initializer such as
int array[4]{1, 2, 3, 4}; const char* str[2]{ "hello", "world" };
Adds CXEval_Array to the CXEvalResultKind enum, clang_EvalResult_getArraySize(), clang_EvalResult_getArrayElt
Paths
| Differential D120061
[libclang] add support for arrays to clang_Cursor_Evaluate Needs ReviewPublic Authored by BartmanAbyss on Feb 17 2022, 7:49 AM.
Revision Contents
Diff 409652 clang/include/clang-c/Index.h
clang/test/Index/evaluate-cursor.cpp
clang/tools/c-index-test/c-index-test.c
clang/tools/libclang/CIndex.cpp
|
clang-format: please reformat the code