We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185d820 commit 08d9480Copy full SHA for 08d9480
libc/utils/docgen/docgen.py
@@ -29,12 +29,10 @@ def is_implemented(hname: str, fname: str) -> bool:
29
hname.rstrip(".h")
30
)
31
source_file_name = fname + ".cpp"
32
- if path.joinpath(source_file_name).exists():
33
- return True
34
-
35
- # Attempt to search in the subfolders with 1-depth.
36
- for sub_dir in path.iterdir():
37
- if (sub_dir.joinpath(source_file_name)).exists():
+ # Recursively search for the target source file in the subdirectories under
+ # libc/src/{hname}.
+ for sub_dir in path.glob("**"):
+ if sub_dir.joinpath(source_file_name).exists():
38
return True
39
40
return False
0 commit comments