Mercurial > hg > CbC > CbC_llvm
comparison clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.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 |
---|---|
18 /// Finds variables declared as auto that could be declared as: | 18 /// Finds variables declared as auto that could be declared as: |
19 /// 'auto*' or 'const auto *' and reference variables declared as: | 19 /// 'auto*' or 'const auto *' and reference variables declared as: |
20 /// 'const auto &'. | 20 /// 'const auto &'. |
21 /// | 21 /// |
22 /// For the user-facing documentation see: | 22 /// For the user-facing documentation see: |
23 /// http://clang.llvm.org/extra/clang-tidy/checks/readability-qualified-auto.html | 23 /// http://clang.llvm.org/extra/clang-tidy/checks/readability/qualified-auto.html |
24 class QualifiedAutoCheck : public ClangTidyCheck { | 24 class QualifiedAutoCheck : public ClangTidyCheck { |
25 public: | 25 public: |
26 QualifiedAutoCheck(StringRef Name, ClangTidyContext *Context) | 26 QualifiedAutoCheck(StringRef Name, ClangTidyContext *Context) |
27 : ClangTidyCheck(Name, Context), | 27 : ClangTidyCheck(Name, Context), |
28 AddConstToQualified(Options.get("AddConstToQualified", true)) {} | 28 AddConstToQualified(Options.get("AddConstToQualified", true)) {} |