Bug 479638 - Cache the result of EvalBinding.isConstantExpression()
authorNathan Ridge <zeratul976@hotmail.com>
Thu, 26 Nov 2015 19:43:50 +0000 (14:43 -0500)
committerSergey Prigogin <eclipse.sprigogin@gmail.com>
Thu, 24 Dec 2015 02:25:55 +0000 (18:25 -0800)
commitffd135b3e20f86657f500b9f2a876aa41c7d5134
treedbd40a3cc5881368b0ccb2ff04a8904a0d336ec2
parentcc90dc0cdbed68b703bc55b9f2ffafeea17b0c37
Bug 479638 - Cache the result of EvalBinding.isConstantExpression()

This helps avoid infinite recursion when a variable's initializer
references itself.

Change-Id: I4667536ebbefd2008afe9003617092a0a5693db0
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java
core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalBinding.java