[PATCH] D28315: Update tools to use new getStyle API

Antonio Maiorano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 11 04:01:03 PST 2017


amaiorano updated this revision to Diff 83952.
amaiorano added a comment.

Fixed code in ClangApplyReplacementsMain.cpp so that we only handle the Expected<Style> when DoFormat is true. Note that I'm using the unidiomatic FormatStyleOrError variable name here, but that's because we only want to set the FormatStyle variable in the parent scope when DoFormat is true.


https://reviews.llvm.org/D28315

Files:
  change-namespace/ChangeNamespace.cpp
  clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
  clang-move/ClangMove.cpp
  clang-tidy/ClangTidy.cpp
  include-fixer/tool/ClangIncludeFixer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28315.83952.patch
Type: text/x-patch
Size: 5669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170111/feb17a19/attachment.bin>


More information about the cfe-commits mailing list