| Alexander Kornienko | 33a9bcc | 2014-04-29 15:20:10 +0000 | [diff] [blame] | 1 | //===--- ClangTidyOptions.h - clang-tidy ------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H |
| 11 | #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H |
| 12 | |
| Alexander Kornienko | 9ff5b6f | 2014-05-05 14:54:47 +0000 | [diff] [blame] | 13 | #include <string> |
| 14 | |
| Alexander Kornienko | 33a9bcc | 2014-04-29 15:20:10 +0000 | [diff] [blame] | 15 | namespace clang { |
| 16 | namespace tidy { |
| 17 | |
| 18 | /// \brief Contains options for clang-tidy. |
| 19 | struct ClangTidyOptions { |
| Alex McCarthy | 3b510bc | 2014-04-30 22:32:51 +0000 | [diff] [blame] | 20 | ClangTidyOptions() : EnableChecksRegex(".*"), AnalyzeTemporaryDtors(false) {} |
| Alexander Kornienko | 33a9bcc | 2014-04-29 15:20:10 +0000 | [diff] [blame] | 21 | std::string EnableChecksRegex; |
| 22 | std::string DisableChecksRegex; |
| Alexander Kornienko | 9ff5b6f | 2014-05-05 14:54:47 +0000 | [diff] [blame] | 23 | // Output warnings from headers matching this filter. Warnings from main files |
| 24 | // will always be displayed. |
| 25 | std::string HeaderFilterRegex; |
| Alex McCarthy | fec08c7 | 2014-04-30 14:09:24 +0000 | [diff] [blame] | 26 | bool AnalyzeTemporaryDtors; |
| Alexander Kornienko | 33a9bcc | 2014-04-29 15:20:10 +0000 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | } // end namespace tidy |
| 30 | } // end namespace clang |
| 31 | |
| 32 | #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_OPTIONS_H |