forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
259 changed files
with
7,272 additions
and
2,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// RUN: rm -rf %t | ||
// RUN: split-file %s %t | ||
// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json | ||
|
||
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format make -j 1 > %t/result.txt | ||
// RUN: FileCheck %s -input-file=%t/result.txt | ||
|
||
// CHECK: {{/|\\}}dir1{{/|\\}}t1.c | ||
// CHECK: {{/|\\}}dir1{{/|\\}}head.h | ||
// CHECK: {{/|\\}}dir2{{/|\\}}t2.c | ||
// CHECK: {{/|\\}}dir2{{/|\\}}head.h | ||
|
||
//--- cdb.json.template | ||
[ | ||
{ | ||
"directory": "DIR/dir1", | ||
"command": "clang -fsyntax-only t1.c", | ||
"file": "t1.c" | ||
}, | ||
{ | ||
"directory": "DIR/dir2", | ||
"command": "clang -fsyntax-only t2.c", | ||
"file": "t2.c" | ||
} | ||
] | ||
|
||
//--- dir1/t1.c | ||
#include "head.h" | ||
|
||
//--- dir1/head.h | ||
#ifndef BBB | ||
#define BBB | ||
#endif | ||
|
||
//--- dir2/t2.c | ||
#include "head.h" | ||
|
||
//--- dir2/head.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// RUN: %clang_cc1 -triple riscv64 -target-feature +v %s | ||
// REQUIRES: riscv-registered-target | ||
|
||
// expected-no-diagnostics | ||
|
||
#include <sifive_vector.h> |
Oops, something went wrong.