Visitor invoked for each file in a translation unit (used with clang_getInclusions()).
This visitor function will be invoked by clang_getInclusions() for each file included (either at the top-level or by #include directives) within a translation unit. The first argument is the file being included, and the second and third arguments provide the inclusion stack. The array is sorted in order of immediate inclusion. For example, the first element refers to the location that included 'included_file'.
If cursor is a statement declaration tries to evaluate the statement and if its variable, tries to evaluate its initializer, into its corresponding type.
If it's an expression, tries to evaluate the expression.
References CINDEX_LINKAGE.
Disposes the created Eval memory.
References CINDEX_LINKAGE.
Returns the evaluation result as double if the kind is double.
References CINDEX_LINKAGE.
Returns the evaluation result as integer if the kind is Int.
References CINDEX_LINKAGE.
Returns the evaluation result as a long long integer if the kind is Int.
This prevents overflows that may happen if the result is returned with clang_EvalResult_getAsInt.
References CINDEX_LINKAGE.
Returns the evaluation result as a constant string if the kind is other than Int or float.
User must not free this pointer, instead call clang_EvalResult_dispose on the CXEvalResult returned by clang_Cursor_Evaluate.
References CINDEX_LINKAGE.
Returns the evaluation result as an unsigned integer if the kind is Int and clang_EvalResult_isUnsignedInt is non-zero.
Returns the kind of the evaluated result.
References CINDEX_LINKAGE.
Returns a non-zero value if the kind is Int and the evaluation result resulted in an unsigned integer.
References CINDEX_LINKAGE.
Return a version string, suitable for showing to a user, but not intended to be parsed (the format is not guaranteed to be stable).
References CINDEX_LINKAGE.
Visit the set of preprocessor inclusions in a translation unit.
The visitor function is called with the provided data for every included file. This does not include headers included by the PCH file (unless one is inspecting the inclusions in the PCH file itself).
References CINDEX_LINKAGE.
Enable/disable crash recovery.
References CINDEX_LINKAGE.