[clang-tools-extra] 149e62c - [clang-doc] Add DAG directive to MD "All files" test (#184671)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 12:00:55 PST 2026


Author: Erick Velez
Date: 2026-03-04T12:00:50-08:00
New Revision: 149e62c29bf86b045ec8a9941c68ed2f13099b92

URL: https://github.com/llvm/llvm-project/commit/149e62c29bf86b045ec8a9941c68ed2f13099b92
DIFF: https://github.com/llvm/llvm-project/commit/149e62c29bf86b045ec8a9941c68ed2f13099b92.diff

LOG: [clang-doc] Add DAG directive to MD "All files" test (#184671)

It seems like the order of the all-files.md output might be different on
local machines, so make the check directives `-DAG` for now.

Added: 
    

Modified: 
    clang-tools-extra/test/clang-doc/namespace.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/test/clang-doc/namespace.cpp b/clang-tools-extra/test/clang-doc/namespace.cpp
index 5ed27944c92fe..bb7f23adb0da3 100644
--- a/clang-tools-extra/test/clang-doc/namespace.cpp
+++ b/clang-tools-extra/test/clang-doc/namespace.cpp
@@ -363,11 +363,12 @@ class ClassInAnotherNamespace {};
 // MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
 // MD-ALL-FILES: ## [PrimaryNamespace](PrimaryNamespace{{[\/]}}index.md)
 
+// COM: FIXME: The output from the sorted index should be deterministic.
 // MD-MUSTACHE-ALL-FILES: # All Files
-// MD-MUSTACHE-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
-// MD-MUSTACHE-ALL-FILES: ## [PrimaryNamespace](PrimaryNamespace{{[\/]}}index.md)
-// MD-MUSTACHE-ALL-FILES: ## [@nonymous_namespace](@nonymous_namespace{{[\/]}}index.md)
-// MD-MUSTACHE-ALL-FILES: ## [AnotherNamespace](AnotherNamespace{{[\/]}}index.md)
+// MD-MUSTACHE-ALL-FILES-DAG: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
+// MD-MUSTACHE-ALL-FILES-DAG: ## [PrimaryNamespace](PrimaryNamespace{{[\/]}}index.md)
+// MD-MUSTACHE-ALL-FILES-DAG: ## [@nonymous_namespace](@nonymous_namespace{{[\/]}}index.md)
+// MD-MUSTACHE-ALL-FILES-DAG: ## [AnotherNamespace](AnotherNamespace{{[\/]}}index.md)
 
 // MD-INDEX: #  C/C++ Reference
 // MD-INDEX: * Namespace: [@nonymous_namespace](@nonymous_namespace)


        


More information about the cfe-commits mailing list