2014-04-29 23:20:10 +08:00
|
|
|
//===--- ClangTidyOptions.h - clang-tidy ------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H
|
|
|
|
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H
|
|
|
|
|
2014-05-05 22:54:47 +08:00
|
|
|
#include <string>
|
|
|
|
|
2014-04-29 23:20:10 +08:00
|
|
|
namespace clang {
|
|
|
|
namespace tidy {
|
|
|
|
|
|
|
|
/// \brief Contains options for clang-tidy.
|
|
|
|
struct ClangTidyOptions {
|
2014-05-01 06:32:51 +08:00
|
|
|
ClangTidyOptions() : EnableChecksRegex(".*"), AnalyzeTemporaryDtors(false) {}
|
2014-04-29 23:20:10 +08:00
|
|
|
std::string EnableChecksRegex;
|
|
|
|
std::string DisableChecksRegex;
|
2014-05-05 22:54:47 +08:00
|
|
|
// Output warnings from headers matching this filter. Warnings from main files
|
|
|
|
// will always be displayed.
|
|
|
|
std::string HeaderFilterRegex;
|
2014-04-30 22:09:24 +08:00
|
|
|
bool AnalyzeTemporaryDtors;
|
2014-04-29 23:20:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace tidy
|
|
|
|
} // end namespace clang
|
|
|
|
|
|
|
|
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H
|