[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-06-14 Thread Balázs Benics via Phabricator via cfe-commits
steakhal abandoned this revision. steakhal added a comment. We don't have the consensus to make me confident in landing this change. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125749/new/ https://reviews.llvm.org/D125749 ___

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-20 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a comment. There is one minor problem with this patch. At `SVal` member function's context one needs to call `llvm::isa<...>()` with by the qualified name, otherwise, the `isa` is ambiguous. The compiler won't know if we want to refer to the free-function or the variadic member f

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-18 Thread Balázs Benics via Phabricator via cfe-commits
steakhal updated this revision to Diff 430326. steakhal marked an inline comment as done. steakhal edited the summary of this revision. steakhal added a comment. - Prefer `V.isUndef()` to `V.isa()`. - Remove tautologically true assertions. Repository: rG LLVM Github Monorepo CHANGES SINCE LAS

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp:44 // Uninitialized value used for the mutex? - if (V.getAs()) { + if (V.isa()) { if (ExplodedNode *N = C.generateErrorNode()) { xazax.hun wrote: > Is th

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp:44 // Uninitialized value used for the mutex? - if (V.getAs()) { + if (V.isa()) { if (ExplodedNode *N = C.generateErrorNode()) { Is there a difference b

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Aman LaChapelle via Phabricator via cfe-commits
bzcheeseman added a comment. Not a qualified reviewer for anything other than the `llvm::isa` usage and that line looks good to me! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125749/new/ https://reviews.llvm.org/D125749 ___

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Balázs Benics via Phabricator via cfe-commits
steakhal updated this revision to Diff 429960. steakhal added a comment. Refactor in the `getAs` uses of `clang/include/StaticAnalyzer` directory as well. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125749/new/ https://reviews.llvm.org/D125749

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h:99-100 + template bool isa() const { return llvm::isa(*this); } + /// Convert to the specified SVal type, asserting that this SVal is of This is the

[PATCH] D125749: [analyzer][NFC] Introduce SVal::isa

2022-05-17 Thread Balázs Benics via Phabricator via cfe-commits
steakhal created this revision. steakhal added reviewers: NoQ, martong, Szelethus, balazske, ASDenysPetrov, bzcheeseman, xazax.hun. Herald added subscribers: manas, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware. Herald added a project: All. steakhal requeste