[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:
Will Dietz 2023-05-23 11:27:13 -05:00 committed by GitHub
parent e780e3e714
commit 53c65b7bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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">

View File

@ -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">