Skip to content

using negative regular expressions with {run-}clang-tidy #85905

@firewave

Description

@firewave

#82416 (comment) mentioned that filter options with regular expression support can use negative expressions as exclude patterns.

I thought one of the limitations of llvm::RegEx is that it doesn't support negative expressions so I wonder how that should work.

I want to use this with -source-filter for run-clang-tidy as well as bugprone-unused-return-value.CheckFunctions.

CC @carlosgalvezp @HerrCai0907

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions