================ @@ -320,11 +320,12 @@ namespace { } std::string getIsOmitted() const override { - if (type == "IdentifierInfo *") + StringRef T = type; + if (T == "IdentifierInfo *" || T == "Expr *") return "!get" + getUpperName().str() + "()"; - if (type == "TypeSourceInfo *") + if (T == "TypeSourceInfo *") return "!get" + getUpperName().str() + "Loc()"; - if (type == "ParamIdx") + if (T == "ParamIdx") return "!get" + getUpperName().str() + "().isValid()"; return "false"; ---------------- steakhal wrote:
Done. https://github.com/llvm/llvm-project/pull/67331 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits