SuccessChanges

Summary

  1. [clang-tidy] modernize-use-using work with multi-argument templates (details)
  2. [SimplifyCFG] propagate fast-math-flags (FMF) from phi to select (details)
Commit 782392db8122cafb5e0e4ad5fe0c24c46f11b2b7 by mitchell
[clang-tidy] modernize-use-using work with multi-argument templates
Summary: If clang-tidy's modernize-use-using feature finds any commas
that are not within parentheses, it won't create a fix. That means it
won't change lines like:
typedef std::pair<int, int> Point; to
using Point = std::pair<int, int>; or even:
typedef std::map<std::string, Foo> MyMap;
typedef std::vector<int,MyCustomAllocator<int>> MyVector;
This patch allows the fix to apply to lines with commas if they are
within parentheses or angle brackets that were not themselves within
parentheses.
Reviewers: alexfh, hokein, aaron.ballman
Patch by: poelmanc
Subscribers: jonathanmeier, cfe-commits
Tags: #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D67460
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/modernize-use-using.cpp
Commit ee0882bdf866ad8877dfda3820a822c851d0733a by spatel
[SimplifyCFG] propagate fast-math-flags (FMF) from phi to select
This is another step towards having FMF apply only to FP values rather
than those + fcmp. See PR38086 for one of the original
discussions/motivations: https://bugs.llvm.org/show_bug.cgi?id=38086
And the test here is derived from PR39535:
https://bugs.llvm.org/show_bug.cgi?id=39535
Currently, we lose FMF when converting any phi to select in SimplifyCFG.
There are a small number of similar changes needed to correct within
SimplifyCFG, so it should be quick to patch this pass up.
FMF was extended to select and phi with: D61917 D67564
Differential Revision: https://reviews.llvm.org/D70208
The file was modifiedllvm/test/Transforms/SimplifyCFG/HoistCode.ll
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp