Skip to content

Conversation

zrlk
Copy link
Contributor

@zrlk zrlk commented Mar 23, 2024

No description provided.

@zrlk zrlk requested a review from a team March 23, 2024 00:52
@zrlk zrlk merged commit 2333456 into kythe:master Mar 24, 2024
@zrlk zrlk deleted the cxx-var-init-difftypes branch March 24, 2024 23:38
@@ -2673,6 +2673,13 @@ bool IndexerASTVisitor::VisitVarDecl(const clang::VarDecl* Decl) {
}
if (options_.RecordVariableInitTypes && Decl->hasInit()) {
if (const auto* init = Decl->getInit(); init != nullptr) {
if (const auto* implicit_cast =
llvm::dyn_cast<clang::ImplicitCastExpr>(init)) {
const auto* sub_init = implicit_cast->getSubExprAsWritten();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just init->IgnoreImpCasts(), no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants