clang-tools 20.0.0git
Classes | Namespaces | Typedefs | Functions
ClangTidyOptions.h File Reference
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBufferRef.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <functional>
#include <optional>
#include <string>
#include <system_error>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  clang::tidy::FileFilter
 Contains a list of line ranges in a single file. More...
 
struct  clang::tidy::ClangTidyGlobalOptions
 Global options. More...
 
struct  clang::tidy::ClangTidyOptions
 Contains options for clang-tidy. More...
 
struct  clang::tidy::ClangTidyOptions::ClangTidyValue
 Helper structure for storing option value with priority of the value. More...
 
class  clang::tidy::ClangTidyOptionsProvider
 Abstract interface for retrieving various ClangTidy options. More...
 
class  clang::tidy::DefaultOptionsProvider
 Implementation of the ClangTidyOptionsProvider interface, which returns the same options for all files. More...
 
class  clang::tidy::FileOptionsBaseProvider
 
class  clang::tidy::ConfigOptionsProvider
 Implementation of ClangTidyOptions interface, which is used for '-config' command-line option. More...
 
class  clang::tidy::FileOptionsProvider
 Implementation of the ClangTidyOptionsProvider interface, which tries to find a configuration file in the closest parent directory of each source file. More...
 

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 

Typedefs

using clang::tidy::DiagCallback = llvm::function_ref< void(const llvm::SMDiagnostic &)>
 

Functions

std::error_code clang::tidy::parseLineFilter (llvm::StringRef LineFilter, ClangTidyGlobalOptions &Options)
 Parses LineFilter from JSON and stores it to the Options.
 
llvm::ErrorOr< ClangTidyOptionsclang::tidy::parseConfiguration (llvm::MemoryBufferRef Config)
 Parses configuration from JSON and returns ClangTidyOptions or an error.
 
llvm::ErrorOr< ClangTidyOptionsclang::tidy::parseConfigurationWithDiags (llvm::MemoryBufferRef Config, DiagCallback Handler)
 
std::string clang::tidy::configurationAsText (const ClangTidyOptions &Options)
 Serializes configuration to a YAML-encoded string.