enum Sema::ReferenceCompareResult

Description

ReferenceCompareResult - Expresses the result of comparing two types (cv1 T1 and cv2 T2) to determine their compatibility for the purposes of initialization by reference (C++ [dcl.init.ref]p4).

Declared at: clang/include/clang/Sema/Sema.h:12277

Enumerators

NameValueComment
Ref_Incompatible0Ref_Incompatible - The two types are incompatible, so direct reference binding is not possible.
Ref_Related1Ref_Related - The two types are reference-related, which means that their unqualified forms (T1 and T2) are either the same or T1 is a base class of T2.
Ref_Compatible2Ref_Compatible - The two types are reference-compatible.