(projectRoot: string)
| 523 | * Returns paths relative to projectRoot. |
| 524 | */ |
| 525 | export function loadCppIncludeDirs(projectRoot: string): string[] { |
| 526 | const cached = cppIncludeDirCache.get(projectRoot); |
| 527 | if (cached !== undefined) return cached; |
| 528 | |
| 529 | const dirs = loadCppIncludeDirsFromCompileDB(projectRoot) |
| 530 | || loadCppIncludeDirsHeuristic(projectRoot); |
| 531 | |
| 532 | cppIncludeDirCache.set(projectRoot, dirs); |
| 533 | return dirs; |
| 534 | } |
| 535 | |
| 536 | /** |
| 537 | * Try to load include directories from compile_commands.json. |
no test coverage detected