[PATCH] D61281: [clang-format] Fixed self assignment

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 14:14:26 PDT 2019


xbolva00 created this revision.
xbolva00 added a reviewer: MyDeveloperDay.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rC Clang

https://reviews.llvm.org/D61281

Files:
  lib/Format/FormatTokenLexer.cpp


Index: lib/Format/FormatTokenLexer.cpp
===================================================================
--- lib/Format/FormatTokenLexer.cpp
+++ lib/Format/FormatTokenLexer.cpp
@@ -246,7 +246,7 @@
       StringRef(Identifier->TokenText.begin(),
                 Question->TokenText.end() - Identifier->TokenText.begin());
   Identifier->ColumnWidth += Question->ColumnWidth;
-  Identifier->Type = Identifier->Type;
+  Identifier->Type = Question->Type;
   Tokens.erase(Tokens.end() - 1);
   return true;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61281.197187.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190429/bf43cd57/attachment.bin>


More information about the cfe-commits mailing list