Skip to content

Commit bc4e01b

Browse files
committed
Revert "Skipped completion of already complete template specialisations."
This reverts commit 99da13e. Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 99da13e commit bc4e01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CppParser/Parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ bool Parser::ShouldCompleteType(const clang::QualType& QualType, bool LocValid)
20262026
if (auto CTS = llvm::dyn_cast<clang::ClassTemplateSpecializationDecl>(Tag))
20272027
{
20282028
// we cannot get a location in some cases of template arguments
2029-
if (!LocValid || CTS->isCompleteDefinition() || CTS->getDefinition())
2029+
if (!LocValid || CTS->isCompleteDefinition())
20302030
return false;
20312031

20322032
auto TAL = &CTS->getTemplateArgs();
@@ -2968,7 +2968,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F,
29682968

29692969
if (auto FTSI = FD->getTemplateSpecializationInfo())
29702970
F->specializationInfo = WalkFunctionTemplateSpec(FTSI, F);
2971-
return;
2971+
29722972
const CXXMethodDecl* MD;
29732973
if ((MD = dyn_cast<CXXMethodDecl>(FD)) && !MD->isStatic() &&
29742974
!CanCheckCodeGenInfo(c->getSema(), MD->getThisType(c->getASTContext()).getTypePtr()))

0 commit comments

Comments
 (0)