aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.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/clang-tidy/misc/ArgumentCommentCheck.cpp
parent313f5e2f29c1826f6aa8bc91f5862bf556cac03b (diff)
downloadllvm-6e0cbc89471c210c59cd080901b1dfe656db117f.zip
llvm-6e0cbc89471c210c59cd080901b1dfe656db117f.tar.gz
llvm-6e0cbc89471c210c59cd080901b1dfe656db117f.tar.bz2
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/clang-tidy/misc/ArgumentCommentCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.cpp b/clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.cpp
index c408c9c..810d557 100644
--- a/clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.cpp
+++ b/clang-tools-extra/clang-tidy/misc/ArgumentCommentCheck.cpp
@@ -18,8 +18,10 @@ using namespace clang::ast_matchers;
namespace clang {
namespace tidy {
-ArgumentCommentCheck::ArgumentCommentCheck()
- : IdentRE("^(/\\* *)([_A-Za-z][_A-Za-z0-9]*)( *= *\\*/)$") {}
+ArgumentCommentCheck::ArgumentCommentCheck(StringRef Name,
+ ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context),
+ IdentRE("^(/\\* *)([_A-Za-z][_A-Za-z0-9]*)( *= *\\*/)$") {}
void ArgumentCommentCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(