Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

fix MSVC compatibility #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/clang-c/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -5078,32 +5078,32 @@ CINDEX_LINKAGE CXEvalResult clang_Cursor_Evaluate(CXCursor C);
/**
* \brief Returns the kind of the evaluated result.
*/
CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E);
CINDEX_LINKAGE CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E);

/**
* \brief Returns the evaluation result as integer if the
* kind is Int.
*/
int clang_EvalResult_getAsInt(CXEvalResult E);
CINDEX_LINKAGE int clang_EvalResult_getAsInt(CXEvalResult E);

/**
* \brief Returns the evaluation result as double if the
* kind is double.
*/
double clang_EvalResult_getAsDouble(CXEvalResult E);
CINDEX_LINKAGE double clang_EvalResult_getAsDouble(CXEvalResult E);

/**
* \brief 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.
*/
const char* clang_EvalResult_getAsStr(CXEvalResult E);
CINDEX_LINKAGE const char* clang_EvalResult_getAsStr(CXEvalResult E);

/**
* \brief Disposes the created Eval memory.
*/
void clang_EvalResult_dispose(CXEvalResult E);
CINDEX_LINKAGE void clang_EvalResult_dispose(CXEvalResult E);
/**
* @}
*/
Expand Down
2 changes: 1 addition & 1 deletion include/clang/Basic/SourceMgrAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SourceMgrAdapter {
void handleDiag(const llvm::SMDiagnostic &diag);

/// Retrieve the diagnostic handler to use with the underlying SourceMgr.
llvm::SourceMgr::DiagHandlerTy getDiagHandler() { return &handleDiag; }
llvm::SourceMgr::DiagHandlerTy getDiagHandler() { return &SourceMgrAdapter::handleDiag; }

/// Retrieve the context to use with the diagnostic handler produced by
/// \c getDiagHandler().
Expand Down