ClangPlugins: Convert all warnings to errors

Now that the lambda capture plugin isn't full of false-positives, we can
make the jump and start halting builds for these errors. It also allows
these plugins to be useful in CI.
This commit is contained in:
Matthew Olsson 2024-05-18 07:08:23 -07:00 committed by Andrew Kaster
commit 6a4938a524
Notes: sideshowbarker 2024-07-17 07:20:49 +09:00
9 changed files with 24 additions and 24 deletions

View file

@ -106,7 +106,7 @@ public:
if (capture->capturesThis() || capture->getCaptureKind() != clang::LCK_ByRef)
return;
auto diag_id = diag_engine.getCustomDiagID(clang::DiagnosticsEngine::Warning, "Variable with local storage is captured by reference in a lambda marked ESCAPING");
auto diag_id = diag_engine.getCustomDiagID(clang::DiagnosticsEngine::Error, "Variable with local storage is captured by reference in a lambda marked ESCAPING");
diag_engine.Report(capture->getLocation(), diag_id);
clang::SourceLocation captured_var_location;