aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/ClangTidy.h
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-08-27 21:17:47 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-08-27 21:17:47 +0000
commitc95659f8a27eb4b20ec7c5656315bd4b7cf6866c (patch)
tree5cb78275067ba8a50c2cf3b2c76a4f12df5af28d /clang-tidy/ClangTidy.h
parent772268716e392f472f91898e677be587ca4ef9f6 (diff)
Expose language options to the checkers; disable UseNullptrCheck when not compiling in C++11 mode.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@246209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r--clang-tidy/ClangTidy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h
index 2df17c2e..a2dbcbc5 100644
--- a/clang-tidy/ClangTidy.h
+++ b/clang-tidy/ClangTidy.h
@@ -158,6 +158,8 @@ protected:
OptionsView Options;
/// \brief Returns the main file name of the current translation unit.
StringRef getCurrentMainFile() const { return Context->getCurrentFile(); }
+ /// \brief Returns the language options from the context.
+ LangOptions getLangOpts() const { return Context->getLangOpts(); }
};
class ClangTidyCheckFactories;