clang-tools 22.0.0git
clang::tidy::CachedGlobList Class Referencefinal

A GlobList that caches search results, so that search is performed only once for the same query. More...

#include <GlobList.h>

Inheritance diagram for clang::tidy::CachedGlobList:
[legend]

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.
const SmallVectorImpl< GlobListItem > & getItems () const

Detailed Description

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.

Member Function Documentation

◆ contains()

bool clang::tidy::CachedGlobList::contains ( StringRef S) const
overridevirtual
See also
GlobList::contains

Reimplemented from clang::tidy::GlobList.

Definition at line 68 of file GlobList.cpp.

References clang::tidy::GlobList::contains().

◆ GlobList()

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.


The documentation for this class was generated from the following files: