From 4483c0162c2672fc09fb738e9c683ebde1f146f3 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Wed, 9 Dec 2015 22:16:07 +0000 Subject: [PATCH] fix typos; NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255163 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h | 5 ++--- .../clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h | 2 +- lib/StaticAnalyzer/Core/CallEvent.cpp | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index 8d1e4b9c5d..b09dffaf4e 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -545,12 +545,11 @@ public: // // Here R is the return type of the lambda and P1, P2, ... are // its parameter types. 'Lambda' is a fake VarDecl captured by the block - // that is initialized to a copy of the the lambda. + // that is initialized to a copy of the lambda. // // Sema leaves the body of a lambda-converted block empty (it is // produced by CodeGen), so we can't analyze it directly. Instead, we skip - // the block body and analyze the operator() method on the the captured - // lambda. + // the block body and analyze the operator() method on the captured lambda. const VarDecl *LambdaVD = getRegionStoringCapturedLambda()->getDecl(); const CXXRecordDecl *LambdaDecl = LambdaVD->getType()->getAsCXXRecordDecl(); CXXMethodDecl* LambdaCallOperator = LambdaDecl->getLambdaCallOperator(); diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h index f777cd79ba..d4f014d299 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h @@ -316,7 +316,7 @@ private: // The analyzer may stop exploring if it sees a state it has previously // visited ("cache out"). The early return here is a defensive check to // prevent accidental caching out by checker API clients. Unless there is a - // tag or the the client checker has requested that the generated node be + // tag or the client checker has requested that the generated node be // marked as a sink, we assume that a client requesting a transition to a // state that is the same as the predecessor state has made a mistake. We // return the predecessor rather than cache out. diff --git a/lib/StaticAnalyzer/Core/CallEvent.cpp b/lib/StaticAnalyzer/Core/CallEvent.cpp index 51dd7c8226..69af09b25b 100644 --- a/lib/StaticAnalyzer/Core/CallEvent.cpp +++ b/lib/StaticAnalyzer/Core/CallEvent.cpp @@ -605,7 +605,7 @@ void BlockCall::getInitialStackFrameContents(const StackFrameContext *CalleeCtx, Params = LambdaOperatorDecl->parameters(); // For blocks converted from a C++ lambda, the callee declaration is the - // operator() method on the the lambda so we bind "this" to + // operator() method on the lambda so we bind "this" to // the lambda captured by the block. const VarRegion *CapturedLambdaRegion = getRegionStoringCapturedLambda(); SVal ThisVal = loc::MemRegionVal(CapturedLambdaRegion); -- 2.40.0