]> granicus.if.org Git - clang/commit
Make InstantiatingTemplate depth checks clearer
authorAlp Toker <alp@nuanti.com>
Tue, 8 Oct 2013 08:09:04 +0000 (08:09 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 8 Oct 2013 08:09:04 +0000 (08:09 +0000)
commitd69f37b5822420e3c3a1b2e875b122aca8248533
tree32a0e99c2da6c4cc2e7e7278c4325c85365a82bd
parent19ccb1227f5dc338d4b2d9dbbaeaa973c293f8d0
Make InstantiatingTemplate depth checks clearer

The bool conversion operator on InstantiatingTemplate never added value and
only served to obfuscate the template instantiation routines.

This replaces the conversion and its callers with an explicit isInvalid()
function to make it clear what's going on at a glance.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192177 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp