Mercurial > hg > CbC > CbC_llvm
comparison clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.h @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 0572611fdcc8 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
16 namespace readability { | 16 namespace readability { |
17 | 17 |
18 /// Checks for use of implicit bool conversions in expressions. | 18 /// Checks for use of implicit bool conversions in expressions. |
19 /// | 19 /// |
20 /// For the user-facing documentation see: | 20 /// For the user-facing documentation see: |
21 /// http://clang.llvm.org/extra/clang-tidy/checks/readability-implicit-bool-conversion.html | 21 /// http://clang.llvm.org/extra/clang-tidy/checks/readability/implicit-bool-conversion.html |
22 class ImplicitBoolConversionCheck : public ClangTidyCheck { | 22 class ImplicitBoolConversionCheck : public ClangTidyCheck { |
23 public: | 23 public: |
24 ImplicitBoolConversionCheck(StringRef Name, ClangTidyContext *Context); | 24 ImplicitBoolConversionCheck(StringRef Name, ClangTidyContext *Context); |
25 bool isLanguageVersionSupported(const LangOptions &LangOpts) const override { | 25 bool isLanguageVersionSupported(const LangOptions &LangOpts) const override { |
26 return LangOpts.Bool; | 26 return LangOpts.Bool; |