[clang] [clang] Check specialization for annotation (PR #117315)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 03:30:30 PST 2024


================
@@ -1763,6 +1763,8 @@ class Sema final : public SemaBase {
   /// Add [[gsl::Pointer]] attributes for std:: types.
   void inferGslPointerAttribute(TypedefNameDecl *TD);
 
+  static bool isPointerLikeType(QualType QT);
----------------
hokein wrote:

nit: please add some comments for this API. I think it is worth clarifying that it is only used for the lifetime analysis (to avoid misuse).

https://github.com/llvm/llvm-project/pull/117315


More information about the cfe-commits mailing list