Added entry in switch statement to recognize GCCAsmStmt
as a possible block terminator.
Handling to build CFG using GCCAsmStmt was already implemented.
Differential D63533
[analyzer] Fix clang-tidy crash on GCCAsmStmt Nathan-Huckleberry on Jun 18 2019, 5:06 PM. Authored by
Details Added entry in switch statement to recognize GCCAsmStmt Handling to build CFG using GCCAsmStmt was already implemented.
Diff Detail
Event TimelineComment Actions Hey, thanks! That's a nice catch. The code looks fine, but i don't think your test actually tests it - see inline comments. Also i think we should put the test into the clang repo (i.e., test/Analysis), because that's where the change is. I'd like to know it if i break your test even if i don't enable clang-tools-extra at all. Because clang-tidy isn't available from within the clang sub-project, this would have to be implemented as a static analyzer test.
Comment Actions I can confirm that this fixes the clang-tidy crash I observed in trying to analyze the kernel.
|