clang-tools  14.0.0git
Public Attributes | List of all members
clang::clangd::config::Fragment::IfBlock Struct Reference

Conditions in the If block restrict when a Fragment applies. More...

#include <ConfigFragment.h>

Collaboration diagram for clang::clangd::config::Fragment::IfBlock:
Collaboration graph
[legend]

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...
 

Detailed Description

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 114 of file ConfigFragment.h.

Member Data Documentation

◆ HasUnrecognizedCondition

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 122 of file ConfigFragment.h.

◆ PathExclude

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 118 of file ConfigFragment.h.

◆ PathMatch

std::vector<Located<std::string> > clang::clangd::config::Fragment::IfBlock::PathMatch

The file being processed must fully match a regular expression.

Definition at line 116 of file ConfigFragment.h.


The documentation for this struct was generated from the following file: