mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
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:
parent
573bbd47ee
commit
6a4938a524
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/mattco98
Commit: 6a4938a524
Pull-request: https://github.com/SerenityOS/serenity/pull/24361
Reviewed-by: https://github.com/ADKaster ✅
9 changed files with 24 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue