25 lines · c
1// Test scanning deps works with _Pragma syntax when not inside a macro.2 3// RUN: rm -rf %t4// RUN: split-file %s %t5// RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json6 7// RUN: clang-scan-deps -compilation-database %t/cdb.json -j 18 9//--- cdb.json.template10[{11 "directory": "DIR",12 "command": "clang -fsyntax-only DIR/tu.c",13 "file": "DIR/tu.c"14}]15 16//--- a.h17_Pragma("once")18#include "b.h"19 20//--- b.h21#include "a.h"22 23//--- tu.c24#include "a.h"25