[llvm] [clang] [clang] report inlining decisions with -Wattribute-{warning|error} (PR #73552)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 27 11:10:54 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();
+ InliningDecisions.push_back(D.getCaller().str());
+ for (auto [index, value] : llvm::enumerate(InliningDecisions))
----------------
nickdesaulniers wrote:
done in d3a221a9aea4f60244adc7d726b398abeb2775b3 PTAL
https://github.com/llvm/llvm-project/pull/73552
More information about the cfe-commits
mailing list