[PATCH] D153340: [include-cleaner] Add an IgnoreHeaders flag to the command-line tool.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 4 02:26:40 PDT 2023
hokein added inline comments.
================
Comment at: clang-tools-extra/include-cleaner/test/tool.cpp:17
+// RUN: clang-include-cleaner -print=changes %s --ignore-headers="foobar\.h,foo\.h" -- -I%S/Inputs/ | FileCheck --match-full-lines --allow-empty --check-prefix=IGNORE %s
+// IGNORE-NOT: - "foobar.h"
----------------
kadircet wrote:
> can you ignore one but keep other?
>
> it'd be useful to also test the regex behaviour
this tests aims to test filtering logic for both missing-includes and unused-includes cases.
added a new test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153340/new/
https://reviews.llvm.org/D153340
More information about the cfe-commits
mailing list