[clang] [clang][ExtractAPI] Add ability to create multiple symbol graphs (PR #86676)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 10:20:21 PDT 2024
================
@@ -0,0 +1,49 @@
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
+// RUN: --emit-extension-symbol-graphs --symbol-graph-dir=%t/symbols \
+// RUN: --product-name=Module -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules-cache \
+// RUN: -triple arm64-apple-macosx -x objective-c-header %t/input.h -verify
+
+//--- input.h
+#include "ExternalModule.h"
+
+ at interface ExtInterface (Category)
+ at property int Property;
+- (void)InstanceMethod;
++ (void)ClassMethod;
+ at end
+
+ at interface ModInterface
+ at end
+
+// expected-no-diagnostics
+
+//--- ExternalModule.h
+ at interface ExtInterface
+ at end
+
+//--- module.modulemap
+module ExternalModule {
+ header "ExternalModule.h"
+}
+
+// RUN: Filecheck %s --input-file %t/symbols/Module.symbols.json --check-prefix MOD
----------------
QuietMisdreavus wrote:
Same `Filecheck` capitalization issue.
https://github.com/llvm/llvm-project/pull/86676
More information about the cfe-commits
mailing list