-
Notifications
You must be signed in to change notification settings - Fork 13.6k
clang_EvalResult_getAsCXString impl #134551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
88a7517
2854d78
27327a4
73e2185
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
#ifndef LLVM_CLANG_C_CXSTRING_H | ||
#define LLVM_CLANG_C_CXSTRING_H | ||
|
||
#include <stddef.h> | ||
#include "clang-c/ExternC.h" | ||
#include "clang-c/Platform.h" | ||
|
||
|
@@ -36,6 +37,7 @@ LLVM_CLANG_C_EXTERN_C_BEGIN | |
*/ | ||
typedef struct { | ||
const void *data; | ||
size_t length; | ||
unsigned private_flags; | ||
} CXString; | ||
|
||
|
@@ -52,6 +54,7 @@ typedef struct { | |
* to `std::string::c_str()`. | ||
*/ | ||
CINDEX_LINKAGE const char *clang_getCString(CXString string); | ||
CINDEX_LINKAGE const char *clang_getCString2(CXString string, size_t *length); | ||
AaronBallman marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems to me that this new interface (I like |
||
|
||
/** | ||
* Free the given string. | ||
|
Uh oh!
There was an error while loading. Please reload this page.