[llvm] [clang] [clang] report inlining decisions with -Wattribute-{warning|error} (PR #73552)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 11:02:50 PST 2023


================
@@ -794,6 +796,13 @@ void BackendConsumer::DontCallDiagHandler(const DiagnosticInfoDontCall &D) {
                               ? diag::err_fe_backend_error_attr
                               : diag::warn_fe_backend_warning_attr)
       << llvm::demangle(D.getFunctionName()) << D.getNote();
+
+  SmallVector<std::string> InliningDecisions = D.getInliningDecisions();
----------------
erichkeane wrote:

Could we use `StringRef` here instead?  It seems to make more sense to me.

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


More information about the cfe-commits mailing list