summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h
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/google/UsingNamespaceDirectiveCheck.h
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/clang-tidy/google/UsingNamespaceDirectiveCheck.h')
-rw-r--r--clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h b/clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h
index 940abb63649..5b0d001badf 100644
--- a/clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h
+++ b/clang-tools-extra/clang-tidy/google/UsingNamespaceDirectiveCheck.h
@@ -22,6 +22,8 @@ namespace build {
/// Corresponding cpplint.py check name: 'build/namespaces'.
class UsingNamespaceDirectiveCheck : public ClangTidyCheck {
public:
+ UsingNamespaceDirectiveCheck(StringRef Name, ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};
OpenPOWER on IntegriCloud