Skip to content

Commit f15e35f

Browse files
committed
Don't make the patch C++-specific
1 parent 808c141 commit f15e35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clangd/InlayHints.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,13 +591,13 @@ class InlayHintVisitor : public RecursiveASTVisitor<InlayHintVisitor> {
591591

592592
bool dataTraverseStmtPre(Stmt *S) {
593593
// Do not show inlay hints for PseudoObjectExprs. They're never
594-
// genuine user codes in C++.
594+
// genuine user codes.
595595
//
596596
// For example, __builtin_dump_struct would expand to a PseudoObjectExpr
597597
// that includes a couple of calls to a printf function. Printing parameter
598598
// names for that anyway would end up with duplicate parameter names (which,
599599
// however, got de-duplicated after visiting) for the printf function.
600-
if (AST.getLangOpts().CPlusPlus && isa<PseudoObjectExpr>(S))
600+
if (isa<PseudoObjectExpr>(S))
601601
return false;
602602
return true;
603603
}

0 commit comments

Comments
 (0)