Lines Matching defs:QT
163 HoverInfo::PrintedType printType(QualType QT, ASTContext &ASTCtx,
168 while (!QT.isNull() && QT->isDecltypeType())
169 QT = QT->castAs<DecltypeType>()->getUnderlyingType();
176 if (!QT.isNull() && !QT.hasQualifiers() && PP.SuppressTagKeyword) {
177 if (auto *TT = llvm::dyn_cast<TagType>(QT.getTypePtr()))
180 QT.print(OS, PP);
183 if (!QT.isNull() && Cfg.Hover.ShowAKA) {
185 QualType DesugaredTy = clang::desugarForDiagnostic(ASTCtx, QT, ShouldAKA);
287 auto QT = VD->getType();
288 if (!QT.isNull()) {
289 while (!QT->getPointeeType().isNull())
290 QT = QT->getPointeeType();
292 if (const auto *CD = QT->getAsCXXRecordDecl())
399 QualType QT = FD->getType();
401 QT = VD->getType().getDesugaredType(D->getASTContext());
402 HI.Type = printType(QT, D->getASTContext(), PP);
842 /// Generate a HoverInfo object given the deduced type \p QT
843 HoverInfo getDeducedTypeHoverContents(QualType QT, const syntax::Token &Tok,
852 if (QT->isUndeducedAutoType()) {
855 HI.Definition = typeAsDefinition(printType(QT, ASTCtx, PP));
857 if (const auto *D = QT->getAsTagDecl()) {