mirror of https://github.com/llvm/circt.git
[SystemC] integration tests: avoid compile_commands.json in clang-tidy. (#5239)
If CXX compiler is not clang (or not same clang as clang-tidy used),
build flags may not be appropriate (or valid) for use by clang-tidy.
Workaround by adding trailing '--'.
Fixes #5236.
See upstream
626849c71e
.
This commit is contained in:
parent
e780e3e714
commit
53c65b7bf8
|
@ -1,6 +1,6 @@
|
|||
// REQUIRES: clang-tidy, systemc
|
||||
// RUN: circt-translate %s --export-systemc > %t.cpp
|
||||
// RUN: clang-tidy --extra-arg=-frtti %t.cpp
|
||||
// RUN: clang-tidy --extra-arg=-frtti %t.cpp --
|
||||
|
||||
emitc.include <"systemc.h">
|
||||
emitc.include <"tuple">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// REQUIRES: clang-tidy
|
||||
// RUN: circt-translate %s --export-systemc > %t.cpp
|
||||
// RUN: clang-tidy --extra-arg=-frtti %t.cpp
|
||||
// RUN: clang-tidy --extra-arg=-frtti %t.cpp --
|
||||
|
||||
emitc.include <"stdint.h">
|
||||
emitc.include <"functional">
|
||||
|
|
Loading…
Reference in New Issue