llvm-project/clang/test/ExtractAPI/known_files_only.c
Daniel Grumberg e05c1b46d0
Reenable external categories (#87357)
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.
2024-04-03 10:18:05 +01:00

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