Home
last modified time | relevance | path

Searched refs:Checks (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DTidyProvider.cpp143 if (!Checks || Checks->empty()) { in mergeCheckList()
144 Checks.emplace(List); in mergeCheckList()
147 *Checks = llvm::join_items(",", *Checks, List); in mergeCheckList()
180 if (!Opts.Checks || Opts.Checks->empty()) in provideDefaultChecks()
181 Opts.Checks = DefaultChecks; in provideDefaultChecks()
187 return [Checks = std::string(Checks), in addTidyChecks()
190 mergeCheckList(Opts.Checks, Checks); in addTidyChecks()
247 if (Opts.Checks && !Opts.Checks->empty()) in disableUnusableChecks()
255 if (!CurTidyConfig.Checks.empty()) in provideClangdConfig()
256 mergeCheckList(Opts.Checks, CurTidyConfig.Checks); in provideClangdConfig()
[all …]
H A DConfigCompile.cpp490 std::string Checks; in compile() local
492 appendTidyCheckSpec(Checks, CheckGlob, true); in compile()
495 appendTidyCheckSpec(Checks, CheckGlob, false); in compile()
497 if (!Checks.empty()) in compile()
499 [Checks = std::move(Checks)](const Params &, Config &C) { in compile()
500 C.Diagnostics.ClangTidy.Checks.append( in compile()
501 Checks, in compile()
502 C.Diagnostics.ClangTidy.Checks.empty() ? /*skip comma*/ 1 : 0, in compile()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp112 Checks.push_back(B.CreateExtractValue(OverflowOp, 1)); in generateCreationChecksForBinOp()
152 Checks.push_back(Check); in generateCreationChecksForBinOp()
161 Checks.push_back(Check); in generateCreationChecksForBinOp()
172 Checks.push_back(ShiftCheck); in generateCreationChecksForBinOp()
185 generateCreationChecksForBinOp(I, Checks); in generateCreationChecks()
203 Checks.push_back(Check); in generateCreationChecks()
216 Checks.push_back(Check); in generateCreationChecks()
291 SmallVector<Value*, 4> Checks; in rewrite() local
294 Checks.push_back(getPoisonFor(ValToPoison, V)); in rewrite()
297 generateCreationChecks(I, Checks); in rewrite()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTidyProviderTests.cpp40 ASSERT_TRUE(BaseOptions.Checks.has_value()); in TEST()
41 EXPECT_EQ(*BaseOptions.Checks, "llvm-*"); in TEST()
45 ASSERT_TRUE(Sub1Options.Checks.has_value()); in TEST()
46 EXPECT_EQ(*Sub1Options.Checks, "misc-*"); in TEST()
51 ASSERT_TRUE(Sub2Options.Checks.has_value()); in TEST()
52 EXPECT_EQ(*Sub2Options.Checks, "misc-*,bugprone-*"); in TEST()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DClangTidyTest.h30 template <typename Check, typename... Checks> struct CheckFactory {
35 CheckFactory<Checks...>::createChecks(Context, Result); in createChecks()
51 TestClangTidyAction(SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Checks,
54 : Checks(Checks), Finder(Finder), Context(Context) {}
68 CheckFactory<CheckTypes...>::createChecks(&Context, Checks);
69 assert(!Checks.empty() && "No checks created");
70 for (auto &Check : Checks) {
80 SmallVectorImpl<std::unique_ptr<ClangTidyCheck>> &Checks;
95 Options.Checks = "*";
125 SmallVector<std::unique_ptr<ClangTidyCheck>, sizeof...(CheckTypes)> Checks;
[all …]
H A DOptionsProviderTest.cpp56 ASSERT_TRUE(File1Options.Checks.has_value()); in TEST()
57 EXPECT_EQ(*File1Options.Checks, "-*,clang-diagnostic-*,readability-*"); in TEST()
58 ASSERT_TRUE(File2Options.Checks.has_value()); in TEST()
59 EXPECT_EQ(*File2Options.Checks, "bugprone-*,misc-*,clang-diagnostic-*"); in TEST()
62 EXPECT_EQ(File2Options.Checks, File3Options.Checks); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyModule.cpp26 std::vector<std::unique_ptr<ClangTidyCheck>> Checks; in createChecks() local
29 Checks.emplace_back(Factory.getValue()(Factory.getKey(), Context)); in createChecks()
31 return Checks; in createChecks()
36 std::vector<std::unique_ptr<ClangTidyCheck>> Checks; in createChecksForLanguage() local
44 Checks.push_back(std::move(Check)); in createChecksForLanguage()
46 return Checks; in createChecksForLanguage()
H A DNoLintDirectiveHandler.cpp66 static std::string trimWhitespace(StringRef Checks) { in trimWhitespace() argument
68 Checks.split(Split, ','); in trimWhitespace()
85 NoLintToken(NoLintType Type, size_t Pos, const Optional<std::string> &Checks) in NoLintToken() argument
87 Checks.value_or("*"), in NoLintToken()
89 if (Checks) in NoLintToken()
90 this->Checks = trimWhitespace(*Checks); in NoLintToken()
100 Optional<std::string> checks() const { return Checks; } in checks()
106 Optional<std::string> Checks; member in clang::tidy::__anon253b0d9f0111::NoLintToken
137 Optional<std::string> Checks; in getNoLints() local
141 Checks = Buffer.slice(Pos, ClosingBracket).str(); in getNoLints()
[all …]
H A DClangTidy.cpp313 std::vector<std::unique_ptr<ClangTidyCheck>> Checks) in ClangTidyASTConsumer() argument
316 Checks(std::move(Checks)) {} in ClangTidyASTConsumer()
323 std::vector<std::unique_ptr<ClangTidyCheck>> Checks; member in clang::tidy::__anonf74c33ed0111::ClangTidyASTConsumer
404 std::vector<std::unique_ptr<ClangTidyCheck>> Checks = in createASTConsumer() local
429 for (auto &Check : Checks) { in createASTConsumer()
435 if (!Checks.empty()) in createASTConsumer()
455 std::move(Checks)); in createASTConsumer()
477 std::vector<std::unique_ptr<ClangTidyCheck>> Checks = in getCheckOptions() local
479 for (const auto &Check : Checks) in getCheckOptions()
630 Opts.Checks = "*"; in getAllChecksAndOptions()
/llvm-project-15.0.7/openmp/runtime/test/affinity/format/
H A Dcheck.py6 class Checks(object): class
41 … raise Checks.CheckError('{}: Output was found when expecting none.'.format(self.prefix))
56 raise Checks.CheckError('{}: Did not find: {}'.format(self.prefix, c))
60 raise Checks.CheckError('{}: Extra output: {}'.format(self.prefix, self.lines))
70 checks = Checks(command_args.filename, command_args.prefix)
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp237 return parseRangeChecks(CheckCond, Checks, Visited); in parseRangeChecks()
544 parseRangeChecks(Cond0, Checks) && parseRangeChecks(Cond1, Checks) && in widenCondCommon()
545 combineRangeChecks(Checks, CombinedChecks)) { in widenCondCommon()
588 return parseRangeChecks(AndLHS, Checks) && in parseRangeChecks()
589 parseRangeChecks(AndRHS, Checks); in parseRangeChecks()
645 Checks.push_back(Check); in parseRangeChecks()
650 SmallVectorImpl<GuardWideningImpl::RangeCheck> &Checks, in combineRangeChecks() argument
652 unsigned OldCount = Checks.size(); in combineRangeChecks()
653 while (!Checks.empty()) { in combineRangeChecks()
656 const Value *CurrentBase = Checks.front().getBase(); in combineRangeChecks()
[all …]
H A DLoopLoadElimination.cpp390 SmallVector<RuntimePointerCheck, 4> Checks; in collectMemchecks() local
392 copy_if(AllChecks, std::back_inserter(Checks), in collectMemchecks()
402 LLVM_DEBUG(dbgs() << "\nPointer Checks (count: " << Checks.size() in collectMemchecks()
404 LLVM_DEBUG(LAI.getRuntimePointerChecking()->printChecks(dbgs(), Checks)); in collectMemchecks()
406 return Checks; in collectMemchecks()
523 SmallVector<RuntimePointerCheck, 4> Checks = collectMemchecks(Candidates); in processLoop() local
526 if (Checks.size() > Candidates.size() * CheckPerElim) { in processLoop()
542 if (!Checks.empty() || !LAI.getPSE().getPredicate().isAlwaysTrue()) { in processLoop()
564 LoopVersioning LV(LAI, Checks, L, LI, DT, PSE.getSE()); in processLoop()
H A DLoopPredication.cpp747 unsigned LoopPredication::collectChecks(SmallVectorImpl<Value *> &Checks, in collectChecks() argument
783 Checks.push_back(*NewRangeCheck); in collectChecks()
790 Checks.push_back(Condition); in collectChecks()
797 Checks.push_back(WideableCond); in collectChecks()
807 SmallVector<Value *, 4> Checks; in widenGuardConditions() local
816 IRBuilder<> Builder(findInsertPt(Guard, Checks)); in widenGuardConditions()
817 Value *AllChecks = Builder.CreateAnd(Checks); in widenGuardConditions()
833 SmallVector<Value *, 4> Checks; in widenWidenableBranchGuardConditions() local
834 unsigned NumWidened = collectChecks(Checks, BI->getCondition(), in widenWidenableBranchGuardConditions()
842 IRBuilder<> Builder(findInsertPt(BI, Checks)); in widenWidenableBranchGuardConditions()
[all …]
H A DLoopDistribute.cpp796 auto Checks = includeOnlyCrossPartitionChecks(AllChecks, PtrToPartition, in processLoop() local
799 if (LAI->hasConvergentOp() && !Checks.empty()) { in processLoop()
810 if (!Pred.isAlwaysTrue() || !Checks.empty()) { in processLoop()
816 LLVM_DEBUG(LAI->getRuntimePointerChecking()->printChecks(dbgs(), Checks)); in processLoop()
817 LoopVersioning LVer(*LAI, Checks, L, LI, DT, SE); in processLoop()
908 SmallVector<RuntimePointerCheck, 4> Checks; in includeOnlyCrossPartitionChecks() local
910 copy_if(AllChecks, std::back_inserter(Checks), in includeOnlyCrossPartitionChecks()
934 return Checks; in includeOnlyCrossPartitionChecks()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/
H A Dindex.rst60 ``abseil-`` Checks related to Abseil library.
62 ``android-`` Checks related to Android.
63 ``boost-`` Checks related to Boost library.
64 ``bugprone-`` Checks that target bug-prone code constructs.
69 ``cppcoreguidelines-`` Checks related to C++ Core Guidelines.
70 ``darwin-`` Checks related to Darwin coding conventions.
71 ``fuchsia-`` Checks related to Fuchsia coding conventions.
72 ``google-`` Checks related to Google coding conventions.
82 ``openmp-`` Checks related to OpenMP API.
137 -config="{Checks: '*',
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dindirect-branch-tracking.ll10 ;; Checks ENDBR insertion in case of switch case statement.
40 ;; Checks NOTRACK insertion in case of switch case statement.
98 ;; Checks ENDBR insertion in case of indirect call instruction.
121 ;; Checks ENDBR insertion in case of setjmp-like function calls.
149 ;; Checks ENDBR insertion in case of internal function.
165 ;; Checks ENDBR insertion in case of function that its was address taken.
180 ;; Checks ENDBR insertion in case of non-intrenal function.
193 ;; Checks that NO TRACK prefix is not added for indirect jumps to a jump-
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/tool/
H A DClangTidyMain.cpp64 static cl::opt<std::string> Checks("checks", cl::desc(R"( variable
172 -config="{Checks: '*',
306 DefaultOptions.Checks = DefaultChecks; in createOptionsProvider()
317 if (Checks.getNumOccurrences() > 0) in createOptionsProvider()
318 OverrideOptions.Checks = Checks; in createOptionsProvider()
523 if (It->first.Checks && GlobList(*It->first.Checks).contains(Check)) { in clangTidyMain()
563 if (Opts.Checks) in clangTidyMain()
565 verifyChecks(Valid.Names, *Opts.Checks, OptionWithSource.second); in clangTidyMain()
/llvm-project-15.0.7/openmp/runtime/
H A D.clang-tidy1 # Checks enabled in the top-level .clang-tidy minus readability-identifier-naming and llvm-header-g…
2 Checks: '-*,clang-diagnostic-*,llvm-*,-llvm-header-guard,misc-*,-misc-unused-parameters,-misc-non-p…
/llvm-project-15.0.7/openmp/libompd/
H A D.clang-tidy1 # Checks enabled in the top-level .clang-tidy minus readability-identifier-naming and llvm-header-g…
2 Checks: '-*,clang-diagnostic-*,llvm-*,-llvm-header-guard,misc-*,-misc-unused-parameters,-misc-non-p…
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DLoopAccessAnalysis.h424 Checks.clear(); in reset()
447 return Checks; in getChecks()
468 unsigned getNumberOfChecks() const { return Checks.size(); } in getNumberOfChecks()
475 const SmallVectorImpl<RuntimePointerCheck> &Checks,
530 SmallVector<RuntimePointerCheck, 4> Checks; variable
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Darm64-bcc.ll2 ; Checks for conditional branch b.vs
25 ; Checks for compfail when optimizing csincr-cbz sequence
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dgc.relocate.ll13 ; Checks that a nonnull pointer
26 ; Checks that a nonnull pointer
56 ; Checks that a nonnull pointer
/llvm-project-15.0.7/compiler-rt/test/
H A D.clang-tidy1 Checks: '-*'
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/explain-config/
H A D.clang-tidy1 Checks: '-*,modernize-use-nullptr'
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dsuspicious-string-compare.rst9 Checks for calls with implicit comparator and proposed to explicitly add it.
17 Checks that compare function results (i.e., ``strcmp``) are compared to valid

12345678910>>...13