[clang] [BoundsSafety][Clang][Sema][AST] Introduce CThisExpr for C __counted_by attributes (PR #199241)

Karthik P via cfe-commits cfe-commits at lists.llvm.org
Fri May 22 13:09:12 PDT 2026


================
@@ -1510,6 +1510,46 @@ class DeclRefExpr final
   }
 };
 
+class CThisExpr : public Expr {
+  SourceLocation Loc;
+  bool IsImplicit;
----------------
Caryoake wrote:

I dont think so, I understand that users will never be able to explicitly write this node in source code. it will always be implicit. I added ItsImplicit only to mirror the CXXThisExpr. I can for sure remove that to save space in the node. 

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


More information about the cfe-commits mailing list