Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-scan-deps] use
-Wno-error
when scanning for dependencies
Warnings can be promoted to errors. But that shouldn't prevent us from getting the dependencies! Differential Revision: https://reviews.llvm.org/D64149 llvm-svn: 365065
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"directory": "DIR", | ||
"command": "clang -E DIR/no-werror.cpp -IInputs -std=c++17 -Weverything -Werror", | ||
"file": "DIR/no-werror.cpp" | ||
} | ||
] |
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 @@ | ||
#define MACRO 201411 |
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,16 @@ | ||
// RUN: rm -rf %t.dir | ||
// RUN: rm -rf %t.cdb | ||
// RUN: mkdir -p %t.dir | ||
// RUN: cp %s %t.dir/no-werror.cpp | ||
// RUN: mkdir %t.dir/Inputs | ||
// RUN: cp %S/Inputs/sys-header.h %t.dir/Inputs/sys-header.h | ||
// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/no-werror.json > %t.cdb | ||
// | ||
// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s | ||
|
||
#define MACRO 201411L | ||
|
||
#include "sys-header.h" | ||
|
||
// CHECK: no-werror.cpp | ||
// CHECK-NEXT: Inputs{{/|\\}}sys-header.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