================ @@ -298,6 +298,22 @@ class CoverageMappingBuilder { : SM.getIncludeLoc(SM.getFileID(Loc)); } + /// Find out where the current file is included or macro is expanded. If the + /// found expansion is a <scratch space>, keep looking. + SourceLocation getIncludeOrNonScratchExpansionLoc(SourceLocation Loc) { ---------------- chapuni wrote:
This may be integrated to `getIncludeOrExpansionLoc(FoldScratch=true)` as an optional behavior. https://github.com/llvm/llvm-project/pull/89869 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits