llvm/llvm-project

Complete VTable class name for types

Open

#163.601 geöffnet am 15. Okt. 2025

Auf GitHub ansehen
 (24 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
ClangIRgood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

Currently, in the RTTI Builder vTableClassNameForType, we return the VTable Class name for each type. This task's scope is to complete the support for the NYI types and add a test for that.

  • In the VTableClassNameForType function, check branches with NYI error and choose one type.
  • Find and return the correct VTableClass name, either from the ClangIR repository or the classical codegen.
  • Write a test that emits RTTI for that type (Hint: One way is to throw expr with that type).

Notes:

  • Please mention what type you will work on in this issue.
  • Please keep it one PR per type.
  • Check Throws.cpp and CIRGenItaniumCXXAPI.cpp changes for reference in #163078.
  • If the type is handled by you, see no test for it, feel free to add one.

Contributor Guide