We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 760a6fa + 6a3ca6d commit e32692dCopy full SHA for e32692d
lib/Sema/PerformanceHints.cpp
@@ -31,7 +31,8 @@
31
using namespace swift;
32
33
bool swift::performanceHintDiagnosticsEnabled(ASTContext &ctx) {
34
- return !ctx.Diags.isIgnoredDiagnosticGroupTree(DiagGroupID::PerformanceHints);
+ return !ctx.Diags.isIgnoredDiagnosticGroupTree(DiagGroupID::PerformanceHints) &&
35
+ (ctx.TypeCheckerOpts.SkipFunctionBodies == FunctionBodySkipping::None);
36
}
37
38
namespace {
0 commit comments