Skip to content

[libc][docs] Add glob implementation status doc and include in CMakeLists #126923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

StarOne01
Copy link
Contributor

These changes tracks glob.h for the implementation status of functions and macros, with respect to the issue ( #122006 ) .

cc @nickdesaulniers

@llvmbot llvmbot added the libc label Feb 12, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 12, 2025

@llvm/pr-subscribers-libc

Author: Prashanth (StarOne01)

Changes

These changes tracks glob.h for the implementation status of functions and macros, with respect to the issue ( #122006 ) .

cc @nickdesaulniers


Full diff: https://github.com/llvm/llvm-project/pull/126923.diff

3 Files Affected:

  • (modified) libc/docs/CMakeLists.txt (+1)
  • (modified) libc/docs/headers/index.rst (+1)
  • (added) libc/utils/docgen/glob.yaml (+27)
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 4ef0e920de683..fb72af02339e1 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -43,6 +43,7 @@ if (SPHINX_FOUND)
       errno
       fenv
       float
+      glob
       inttypes
       locale
       net/if
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 3dc30ef90a8e4..b3c4492fa13ad 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -14,6 +14,7 @@ Implementation Status
    errno
    fenv
    float
+   glob
    inttypes
    locale
    math/index.rst
diff --git a/libc/utils/docgen/glob.yaml b/libc/utils/docgen/glob.yaml
new file mode 100644
index 0000000000000..ad5df137a1989
--- /dev/null
+++ b/libc/utils/docgen/glob.yaml
@@ -0,0 +1,27 @@
+macros:
+  GLOB_APPEND:
+    in-latest-posix: ''
+  GLOB_DOOFFS:
+    in-latest-posix: ''
+  GLOB_ERR:
+    in-latest-posix: ''
+  GLOB_MARK:
+    in-latest-posix: ''
+  GLOB_NOCHECK:
+    in-latest-posix: ''
+  GLOB_NOESCAPE:
+    in-latest-posix: ''
+  GLOB_NOSORT:
+    in-latest-posix: ''
+  GLOB_ABORTED:
+    in-latest-posix: ''
+  GLOB_NOMATCH:
+    in-latest-posix: ''
+  GLOB_NOSPACE:
+    in-latest-posix: ''
+
+functions:
+  glob:
+    in-latest-posix: ''
+  globfree:
+    in-latest-posix: ''
\ No newline at end of file

@lntue lntue requested review from lntue and michaelrj-google March 16, 2025 16:32
Copy link
Contributor

@lntue lntue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the header generated in full build? You might need to add glob.h.def file and update libc/include/CMakeLists.txt

@StarOne01
Copy link
Contributor Author

StarOne01 commented Mar 17, 2025

is the header generated in full build? You might need to add glob.h.def file and update libc/include/CMakeLists.txt

I believe these are auto-generated when flags -DLLVM_ENABLE_SPHINX=ONand
-DLIBC_INCLUDE_DOCS=ON are set and libc target is included, be it full build or just libc

Since, I could see entries for files I added in past.

@lntue lntue merged commit 47f7daa into llvm:main Mar 17, 2025
14 checks passed
@StarOne01 StarOne01 deleted the glob_ref branch March 18, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants