[all-commits] [llvm/llvm-project] 6defc8: Initialize member variable; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Apr 10 05:30:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6defc8ee66caef0191015a6943f1694ee7410459
https://github.com/llvm/llvm-project/commit/6defc8ee66caef0191015a6943f1694ee7410459
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp
Log Message:
-----------
Initialize member variable; NFC
This was found via a Coverity static analysis pass. There's no
indication this was being used incorrectly in practice, but there are
public interfaces which require `BR` to be non-null and valid, and `BR`
was not being initialized by the constructor.
This adds an in-class initializer for `BR` and some asserts, to be safe.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list