mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 08:06:08 +00:00

Reenables b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the commit that removed.
20 lines
444 B
C
20 lines
444 B
C
// RUN: rm -rf %t
|
|
// RUN: split-file %s %t
|
|
// RUN: %clang_cc1 -extract-api --pretty-sgf --product-name=GlobalRecord -triple arm64-apple-macosx \
|
|
// RUN: %t/input1.h -verify -o - | FileCheck %s
|
|
|
|
//--- input1.h
|
|
int num;
|
|
#include "input2.h"
|
|
|
|
//--- input2.h
|
|
// Ensure that these symbols are not emitted in the Symbol Graph.
|
|
#define HELLO 1
|
|
char not_emitted;
|
|
void foo(int);
|
|
struct Foo { int a; };
|
|
|
|
// CHECK-NOT: input2.h
|
|
|
|
// expected-no-diagnostics
|