1/*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\
3|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
5|* See https://llvm.org/LICENSE.txt for license information. *|
6|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
8|*===----------------------------------------------------------------------===*|
10|* This header provides the interface to C Index strings. *|
12\*===----------------------------------------------------------------------===*/
14#ifndef LLVM_CLANG_C_CXSTRING_H
15#define LLVM_CLANG_C_CXSTRING_H
23 * \defgroup CINDEX_STRING String manipulation routines
32 * The \c CXString type is used to return strings from the interface when
33 * the ownership of that string might differ from one call to the next.
34 * Use \c clang_getCString() to retrieve the string data and, once finished
35 * with the string data, call \c clang_disposeString() to free the string.
48 * Retrieve the character data associated with the given string.
50 * The returned data is a reference and not owned by the user. This data
51 * is only valid while the `CXString` is valid. This function is similar
52 * to `std::string::c_str()`.
57 * Free the given string.
62 * Free the given string set.
#define LLVM_CLANG_C_EXTERN_C_END
#define LLVM_CLANG_C_EXTERN_C_BEGIN
CINDEX_LINKAGE const char * clang_getCString(CXString string)
Retrieve the character data associated with the given string.
CINDEX_LINKAGE void clang_disposeStringSet(CXStringSet *set)
Free the given string set.
CINDEX_LINKAGE void clang_disposeString(CXString string)
Free the given string.