logic: fixed infinite iteration when trying to solve parent name of C++ template arguments with multiple parent contexts in Clang AST (this is a very rare edge case)

This commit is contained in:
mlangkabel
2018-11-12 15:28:54 +01:00
parent 8188fbd7be
commit 5d64910083
2 changed files with 16 additions and 4 deletions
+4 -4
View File
@@ -5,14 +5,14 @@ template <typename T>
class ScopedSwitcher
{
public:
ScopedSwitcher(T &var)
ScopedSwitcher(T &var)
: m_var(&var)
, m_origVal(var)
, m_origVal(var)
{}
ScopedSwitcher(T &var, T tempVal)
ScopedSwitcher(T &var, T tempVal)
: m_var(&var)
, m_origVal(var)
, m_origVal(var)
{
var = tempVal;
}