This is an archive of the discontinued LLVM Phabricator instance.

Expose QualType::getNonReferenceType in libclang
ClosedPublic

Authored by diseraluca on Sep 2 2022, 4:01 AM.

Details

Summary

The method is now wrapped by clang_getNonReferenceType.

A declaration for clang_getNonReferenceType was added to clang-c/Index.h
to expose it to user of the library.

An implementation for clang_getNonReferenceType was introduced in
CXType.cpp, wrapping the equivalent method of the underlying QualType of
a CXType.

An export symbol for the new function was added to libclang.map under
the LLVM_16 version entry.

A test was added to LibclangTest.cpp that tests the removal of
ref-qualifiers for some CXTypes.

The release-notes for the clang project was updated to include a
notification of the new addition under the "libclang" section.

Diff Detail

Event Timeline

diseraluca created this revision.Sep 2 2022, 4:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 4:01 AM
Herald added a subscriber: arphaman. · View Herald Transcript
diseraluca requested review of this revision.Sep 2 2022, 4:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 4:01 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Sep 2 2022, 6:53 AM

LGTM! The precommit CI failure on Debian looks to be unrelated, so I will land this on your behalf.

This revision is now accepted and ready to land.Sep 2 2022, 6:53 AM
This revision was landed with ongoing or failed builds.Sep 2 2022, 6:55 AM
This revision was automatically updated to reflect the committed changes.