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

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 03:44:43 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);
----------------
usx95 wrote:

Added comments. Also moved to CheckExprLifetime.h.
I guess that is better to avoid wrong usages.

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


More information about the cfe-commits mailing list