clang-tools
11.0.0
|
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. More... | |
std::vector< Located< std::string > > | PathExclude |
The file being processed must not fully match a regular expression. More... | |
bool | HasUnrecognizedCondition = false |
An unrecognized key was found while parsing the condition. More... | |
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 108 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 116 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 112 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 110 of file ConfigFragment.h.