summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-09-12 08:53:36 +0000
committerAlexander Kornienko <alexfh@google.com>2014-09-12 08:53:36 +0000
commit6e0cbc89471c210c59cd080901b1dfe656db117f (patch)
treedec7c96c3799366aafa7ddcb51866a8248eb8e31 /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
parent313f5e2f29c1826f6aa8bc91f5862bf556cac03b (diff)
downloadbcm5719-llvm-6e0cbc89471c210c59cd080901b1dfe656db117f.tar.gz
bcm5719-llvm-6e0cbc89471c210c59cd080901b1dfe656db117f.zip
Implemented clang-tidy-check-specific options.
Summary: Each check can implement readOptions and storeOptions methods to read and store custom options. Each check's options are stored in a local namespace to avoid name collisions and provide some sort of context to the user. Reviewers: bkramer, klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5296 llvm-svn: 217661
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
index 0d43cc933f6..67b3d67de98 100644
--- a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
@@ -95,6 +95,8 @@ static std::string runHeaderGuardCheck(StringRef Code, const Twine &Filename) {
namespace {
struct WithEndifComment : public LLVMHeaderGuardCheck {
+ WithEndifComment(StringRef Name, ClangTidyContext *Context)
+ : LLVMHeaderGuardCheck(Name, Context) {}
bool shouldSuggestEndifComment(StringRef Filename) override { return true; }
};
} // namespace
OpenPOWER on IntegriCloud