(context: ResolutionContext)
| 165 | * directive. Names with no extension are the standard library's (`<vector>`). |
| 166 | */ |
| 167 | export function cppIncludedSources(context: ResolutionContext): string[] { |
| 168 | const memo = memoFor(context); |
| 169 | const found = new Set<string>(); |
| 170 | for (const [name, includes] of includesByName(context, memo)) { |
| 171 | if (!name.includes('.') || /\.(?:h|hh|hpp|hxx)$/i.test(name)) continue; |
| 172 | for (const include of includes) { |
| 173 | const file = includedFile(include, context, memo); |
| 174 | if (file !== null) found.add(file); |
| 175 | } |
| 176 | } |
| 177 | return [...found].sort(); |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Every file that includes `filePath`, directly or through the files that |
no test coverage detected