================
@@ -0,0 +1,10 @@
+// RUN: rm -rf %t && mkdir -p %t
+// RUN: clang-doc --compact --doxygen --output=%t --format=json 
--executor=standalone %s
+// RUN: FileCheck %s < %t/json/GlobalNamespace/_ZTV3Foo.json 
--check-prefix=CLASS
+// RUN: FileCheck %s < %t/json/index.json --check-prefix=INDEX
+
+class Foo {};
+
+// CLASS: 
{"Contexts":[{"DocumentationFileName":"index","End":true,"Name":"Global 
Namespace","QualName":"GlobalNamespace","RelativePath":"{{.*}}","USR":"0000000000000000000000000000000000000000"}],"DocumentationFileName":"_ZTV3Foo","HasContexts":true,"InfoType":"record","IsTypedef":false,"Location":{"Filename":"{{.*}}compact.cpp","LineNumber":6},"MangledName":"_ZTV3Foo","Name":"Foo","Namespace":["GlobalNamespace"],"Path":"GlobalNamespace","TagType":"class","USR":"{{([0-9A-F]{40})}}"}
----------------
evelez7 wrote:

I don't think it can be used here since there's only one line in the file. 
There needs to be a preceding `CHECK` line.

https://github.com/llvm/llvm-project/pull/190822
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to