Skip to content

Commit 4ae56c0

Browse files
committed
chore: fix Wparentheses warning
1 parent c777320 commit 4ae56c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/AST/ASTVisitor.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ class ASTVisitor
16191619
// collect all parent classes/enums/namespaces
16201620
llvm::SmallVector<const NamedDecl*, 8> parents;
16211621
const Decl* P = ND;
1622-
while(P = getParentDecl(P))
1622+
while((P = getParentDecl(P)))
16231623
{
16241624
if(isa<TranslationUnitDecl>(P))
16251625
break;
@@ -1741,8 +1741,8 @@ class ASTVisitor
17411741

17421742
Decl* getParentDecl(Decl* D)
17431743
{
1744-
while(D = cast_if_present<
1745-
Decl>(D->getDeclContext()))
1744+
while((D = cast_if_present<
1745+
Decl>(D->getDeclContext())))
17461746
{
17471747
switch(D->getKind())
17481748
{

0 commit comments

Comments
 (0)