================
@@ -926,6 +926,13 @@
ASTContext::setExternalSource(IntrusiveRefCntPtr<ExternalASTSource> Source) {
ExternalSource = std::move(Source);
}
+SemaProxy *ASTContext::getSemaProxy() { return SemaProxyPtr.get(); }
+
+void ASTContext::setSemaProxy(std::unique_ptr<SemaProxy> Proxy) {
+ assert((!SemaProxyPtr || !Proxy) && "SemaProxy already set");
+ SemaProxyPtr = std::move(Proxy);
+}
----------------
zyn0217 wrote:
Can we inline the getter/setter?
https://github.com/llvm/llvm-project/pull/173537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits