[PATCH] D149899: [clang-tidy] Support SystemHeaders in .clang-tidy
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 5 01:38:47 PDT 2023
PiotrZSL accepted this revision.
PiotrZSL added a comment.
This revision is now accepted and ready to land.
>From functionally point of view, LGTM.
================
Comment at: clang-tools-extra/test/clang-tidy/infrastructure/system-headers.cpp:11
+// RUN: clang-tidy -checks='-*,google-explicit-constructor' -header-filter='.*' -config='SystemHeaders: false' %s -- -isystem %S/Inputs/system-headers 2>&1 | FileCheck -check-prefix=CHECK-NO-SYSTEM-HEADERS %s
+
+#include <system_header.h>
----------------
I missing 2 types of tests here:
- config value override, `-config='SystemHeaders: true' -system-headers=false`
- config file override, when one file has `false`, other `true`, but InheritConfig is used.
Both should work, but would be good to test them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149899/new/
https://reviews.llvm.org/D149899
More information about the cfe-commits
mailing list