[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:14:23 PDT 2024


================
@@ -1,965 +1,630 @@
 // RUN: rm -rf %t
-// RUN: split-file %s %t
-// RUN: sed -e "s at INPUT_DIR@%{/t:regex_replacement}@g" \
-// RUN: %t/reference.output.json.in >> %t/reference.output.json
-// RUN: %clang_cc1 -extract-api -fblocks -triple arm64-apple-macosx \
-// RUN: -x objective-c-header %t/input.h -o %t/output.json -verify
+// RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
+// RUN:   -fblocks -triple arm64-apple-macosx -x objective-c-header %s -o %t/output.symbols.json -verify
 
-// Generator version is not consistent across test runs, normalize it.
-// RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
-// RUN: %t/output.json >> %t/output-normalized.json
-// RUN: diff %t/reference.output.json %t/output-normalized.json
-
-//--- input.h
 @interface Foo
+// RUN: Filecheck %s --input-file %t/output.symbols.json --check-prefix NOPARAM
----------------
QuietMisdreavus wrote:

Is this `Filecheck` (not `FileCheck`) valid? I'm not sure if this will work properly on all platforms where these tests are run.

https://github.com/llvm/llvm-project/pull/86676


More information about the cfe-commits mailing list