Commit Graph

5 Commits

Author SHA1 Message Date
fzi-hielscher 37d2891bbd
[NFC][clang-tidy] Disallow global 'using' directives in headers (#6998)
Add the google-global-names-in-headers rule to the list of clang-tidy checks to prevent namespace pollution.

This is intended to flag global using-directives in header files during PR checks. Collisions between the llvm and the mlir namespace have caused obscure build failures on Windows in the past. #6844 should have removed all existing occurrences in the CIRCT code base.
2024-05-07 21:24:37 +02:00
Nandor Licker 1571d47081
[NFC] Disable -misc-include-cleaner (#6483)
The warning is too verbose and the header setup of CIRCT does not line up with it.
2023-12-04 11:28:51 +02:00
Will Dietz cb2aa8b246
[NFC] .clang-tidy: Disable misc-use-anonymous-namespace . (#5775)
Conflicts with coding standard re:static methods,
see upstream's similar change:
4c9f1584ce2c373dc571068af5fd65f2e16d05d2 .
2023-08-03 14:00:35 -05:00
Will Dietz 7aab7fbe11
clang-tidy: sync with upstream MLIR (+LLVM) changes since imported. (#3699)
MLIR's clang-tidy configuration inherits from LLVM's,
so this was updated to the merged configuration.

Using `--list-checks` to compare the final set of checks
and `--dump-config` to compare their configuration
(but not Checks, since there's duplication due to inheritance)

Config:
* Dropped naming exception for 'LLVMFuzzerTestOneInput'

Checks:
* We still have misc-no-recursion, upstream dropped.

And are otherwise the same.
2022-08-10 20:55:20 -05:00
John Demme 8d3d08fdf7
Adds clang-tidy to the workflow (#128) 2020-10-08 13:52:58 -07:00