This is not NFC strictly speaking, since it unifies CleanupAttr handling,
so that out parameters now also understand it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
This is not NFC strictly speaking
Test? (:
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp | ||
---|---|---|
1162–1166 ↗ | (On Diff #181931) | Slightly shorter: const MemRegion *MR = loc.getAsRegion(); if (!MR) return; if (shouldEscapeRegion(MR)) { ... } It should be equivalent because the only other case in which getAsRegion() succeeds is when the value is nonloc::LocAsInteger but it's something you can bind *to*. |