clang-tools 20.0.0git
|
Conditions in the If block restrict when a Fragment applies. More...
#include <ConfigFragment.h>
Public Attributes | |
std::vector< Located< std::string > > | PathMatch |
The file being processed must fully match a regular expression. | |
std::vector< Located< std::string > > | PathExclude |
The file being processed must not fully match a regular expression. | |
bool | HasUnrecognizedCondition = false |
An unrecognized key was found while parsing the condition. | |
Conditions in the If block restrict when a Fragment applies.
Each separate condition must match (combined with AND). When one condition has multiple values, any may match (combined with OR). e.g. PathMatch: [foo/.*, bar/.*]
matches files in either directory.
Conditions based on a file's path use the following form:
Definition at line 113 of file ConfigFragment.h.
bool clang::clangd::config::Fragment::IfBlock::HasUnrecognizedCondition = false |
An unrecognized key was found while parsing the condition.
The condition will evaluate to false.
Definition at line 121 of file ConfigFragment.h.
std::vector<Located<std::string> > clang::clangd::config::Fragment::IfBlock::PathExclude |
The file being processed must not fully match a regular expression.
Definition at line 117 of file ConfigFragment.h.
std::vector<Located<std::string> > clang::clangd::config::Fragment::IfBlock::PathMatch |
The file being processed must fully match a regular expression.
Definition at line 115 of file ConfigFragment.h.