================ @@ -1024,6 +1024,9 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> { /// @} }; +/// Declare the friend function for testing to avoid GCC warning. ---------------- erichkeane wrote:
couldn't we just put this at the top of the unittest file where this is defined/used? Just do: `namespace clang { <declaration> }` It seems silly to do this for a function that is only used in the unittests. https://github.com/llvm/llvm-project/pull/112820 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits