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

Controls how clang-tidy will run over the code base. More...

#include <ConfigFragment.h>

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

Public Attributes

std::vector< Located< std::string > > Add
 
std::vector< Located< std::string > > Remove
 List of checks to disable. More...
 
std::vector< std::pair< Located< std::string >, Located< std::string > > > CheckOptions
 A Key-Value pair list of options to pass to clang-tidy checks These take precedence over options specified in clang-tidy configuration files. More...
 

Detailed Description

Controls how clang-tidy will run over the code base.

The settings are merged with any settings found in .clang-tidy configiration files with these ones taking precedence.

Definition at line 217 of file ConfigFragment.h.

Member Data Documentation

◆ Add

std::vector<Located<std::string> > clang::clangd::config::Fragment::DiagnosticsBlock::ClangTidyBlock::Add

Definition at line 218 of file ConfigFragment.h.

◆ CheckOptions

std::vector<std::pair<Located<std::string>, Located<std::string> > > clang::clangd::config::Fragment::DiagnosticsBlock::ClangTidyBlock::CheckOptions

A Key-Value pair list of options to pass to clang-tidy checks These take precedence over options specified in clang-tidy configuration files.

Example: CheckOptions: readability-braces-around-statements.ShortStatementLines: 2

Definition at line 232 of file ConfigFragment.h.

◆ Remove

std::vector<Located<std::string> > clang::clangd::config::Fragment::DiagnosticsBlock::ClangTidyBlock::Remove

List of checks to disable.

Takes precedence over Add. To enable all llvm checks except include order: Add: llvm-* Remove: llvm-include-onder

Definition at line 224 of file ConfigFragment.h.


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