Clang static analyzer has a check so that "addresses to stack memory do not escape the function." How smart or tight is this check? Is it a guarantee or just heuristic? Which kind of code would it be confused by?
https://clang.llvm.org/docs/analyzer/checkers.html#core-stackaddressescape-c
2.1m questions
2.1m answers
60 comments
57.0k users