We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c777320 commit 4ae56c0Copy full SHA for 4ae56c0
src/lib/AST/ASTVisitor.cpp
@@ -1619,7 +1619,7 @@ class ASTVisitor
1619
// collect all parent classes/enums/namespaces
1620
llvm::SmallVector<const NamedDecl*, 8> parents;
1621
const Decl* P = ND;
1622
- while(P = getParentDecl(P))
+ while((P = getParentDecl(P)))
1623
{
1624
if(isa<TranslationUnitDecl>(P))
1625
break;
@@ -1741,8 +1741,8 @@ class ASTVisitor
1741
1742
Decl* getParentDecl(Decl* D)
1743
1744
- while(D = cast_if_present<
1745
- Decl>(D->getDeclContext()))
+ while((D = cast_if_present<
+ Decl>(D->getDeclContext())))
1746
1747
switch(D->getKind())
1748
0 commit comments