r283487 - [Sema] Replace smart quote with "'" in comment.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 6 12:47:56 PDT 2016


Author: jlebar
Date: Thu Oct  6 14:47:56 2016
New Revision: 283487

URL: http://llvm.org/viewvc/llvm-project?rev=283487&view=rev
Log:
[Sema] Replace smart quote with "'" in comment.

Looks like the smart quote was copy/pasted from the C++ standard.

The smart quote was not encoded as valid UTF-8 (?), even though vim was
detecting the file as UTF-8.  This broke the clang-format Python script,
which tried to read the file using the same encoding as vim detected.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=283487&r1=283486&r2=283487&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Oct  6 14:47:56 2016
@@ -13687,7 +13687,7 @@ static bool captureInLambda(LambdaScopeI
     // C++ [expr.prim.lambda]p5:
     //   The closure type for a lambda-expression has a public inline 
     //   function call operator [...]. This function call operator is 
-    //   declared const (9.3.1) if and only if the lambda-expression’s 
+    //   declared const (9.3.1) if and only if the lambda-expression's 
     //   parameter-declaration-clause is not followed by mutable.
     DeclRefType = CaptureType.getNonReferenceType();
     if (!LSI->Mutable && !CaptureType->isReferenceType())




More information about the cfe-commits mailing list