clang-tools 20.0.0git
|
A GlobList
that caches search results, so that search is performed only once for the same query.
More...
#include <GlobList.h>
Public Member Functions | |
bool | contains (StringRef S) const override |
GlobList (StringRef Globs, bool KeepNegativeGlobs=true) | |
Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion. | |
Public Member Functions inherited from clang::tidy::GlobList | |
virtual | ~GlobList ()=default |
GlobList (StringRef Globs, bool KeepNegativeGlobs=true) | |
Globs is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion. | |
virtual bool | contains (StringRef S) const |
Returns true if the pattern matches S . | |
const SmallVectorImpl< GlobListItem > & | getItems () const |
A GlobList
that caches search results, so that search is performed only once for the same query.
Definition at line 57 of file GlobList.h.
|
overridevirtual |
Reimplemented from clang::tidy::GlobList.
Definition at line 68 of file GlobList.cpp.
References clang::tidy::GlobList::contains().
clang::tidy::GlobList::GlobList | ( | StringRef | Globs, |
bool | KeepNegativeGlobs = true |
||
) |
Globs
is a comma-separated list of globs (only the '*' metacharacter is supported) with an optional '-' prefix to denote exclusion.
An empty Globs
string is interpreted as one glob that matches an empty string.
KeepNegativeGlobs
a bool flag indicating whether to keep negative globs from Globs
or not. When false, negative globs are simply ignored.
Definition at line 37 of file GlobList.cpp.