================ @@ -320,10 +320,11 @@ namespace { } std::string getIsOmitted() const override { - if (type == "IdentifierInfo *") - return "!get" + getUpperName().str() + "()"; - if (type == "TypeSourceInfo *") + StringRef T = type; + if (T == "TypeSourceInfo *") return "!get" + getUpperName().str() + "Loc()"; + if (T.ends_with(" *")) + return "!get" + getUpperName().str() + "()"; ---------------- erichkeane wrote:
This might not be sufficient here, it could end in 'const' /etc, right? 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