[Analyzer] Refactor begin and end symbol creation
authorAdam Balogh <adam.balogh@ericsson.com>
Mon, 20 May 2019 11:04:27 +0000 (11:04 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Mon, 20 May 2019 11:04:27 +0000 (11:04 +0000)
commit33160c442449f71a76381383186e7ed726cab619
tree00c64d938f18134c1a8caf9bd9234b8f8257839b
parente386a01e845919c60554bdf47ed8288089a8e903
[Analyzer] Refactor begin and end symbol creation

This patch refactors begin and end symbol creation by moving symbol
conjuration into the `create...` functions. This way the functions'
responsibilities are clearer and makes possible to add more functions
handling these symbols (e.g. functions for handling the container's
size) without code multiplication.

Differential Revision: https://reviews.llvm.org/D61136

llvm-svn: 361141
clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp