kadircet added inline comments.
================ Comment at: clang-tools-extra/clangd/InlayHints.cpp:320 + // file that was included after the preamble), do not show in that case. + if (AST.getSourceManager().getFileID(FileRange->getBegin()) != MainFileID) + return; ---------------- sammccall wrote: > nit: getSourceManager().isWrittenInMainFile(FileRange->getBegin()) double nit: `isInsideMainFile(Loc, SM)`, I presume we would like to keep hints in preamble section as well (even though it is unlikely that we'll have any) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D106934/new/ https://reviews.llvm.org/D106934 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits