Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.9 KiB

  1. /*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\
  2. |* *|
  3. |* The LLVM Compiler Infrastructure *|
  4. |* *|
  5. |* This file is distributed under the University of Illinois Open Source *|
  6. |* License. See LICENSE.TXT for details. *|
  7. |* *|
  8. |*===----------------------------------------------------------------------===*|
  9. |* *|
  10. |* This header provides the interface to C Index strings. *|
  11. |* *|
  12. \*===----------------------------------------------------------------------===*/
  13. #ifndef CLANG_CXSTRING_H
  14. #define CLANG_CXSTRING_H
  15. #include "clang-c/Platform.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /**
  20. * \defgroup CINDEX_STRING String manipulation routines
  21. * \ingroup CINDEX
  22. *
  23. * @{
  24. */
  25. /**
  26. * \brief A character string.
  27. *
  28. * The \c CXString type is used to return strings from the interface when
  29. * the ownership of that string might different from one call to the next.
  30. * Use \c clang_getCString() to retrieve the string data and, once finished
  31. * with the string data, call \c clang_disposeString() to free the string.
  32. */
  33. typedef struct {
  34. const void *data;
  35. unsigned private_flags;
  36. } CXString;
  37. /**
  38. * \brief Retrieve the character data associated with the given string.
  39. */
  40. CINDEX_LINKAGE const char *clang_getCString(CXString string);
  41. /**
  42. * \brief Free the given string,
  43. */
  44. CINDEX_LINKAGE void clang_disposeString(CXString string);
  45. /**
  46. * @}
  47. */
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif