Skip to content

[clang-c] refactor CXString #139028

Open
Open
@illusory0x0

Description

@illusory0x0

Simplify the CXString implementation by pointing to a StringRef::data with CXString directly, allocating memory when clang_getCString is called, and then constructing a null terminated string.

add two API

  • clang_getCXString_len
  • clang_getCXString_ptr

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions