The latest version of clang-format that gets built from LLVM has changed its
behavior. I built the latest version and ran it on all of the .h and .cpp
files in the include, lib, module, runtime, and tools directories. I then
built and tested the resulting compiler, and everything seemed to work.
Details
- Reviewers
sscalpone jeanPerier schweitz awarzynski
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp | ||
---|---|---|
66 ↗ | (On Diff #345216) | Does this change the doxygen produced? |
flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp | ||
---|---|---|
66 ↗ | (On Diff #345216) | I have no idea. How do I check? |
Thanks, @sscalpone. When I try to follow those instructions, I get a message about the doxygen executable being missing. I'm working on sky7. What's the best way to get doxygen installed?
@PeteSteinfeld , many thanks for this patch!
LGTM, though I think it is worth waiting to see how https://github.com/google/llvm-premerge-checks/issues/303 is resolved. Also, perhaps this should be formatted with clang-format-12 instead of ToT? Given that LLVM 12 has just been released, I suspect that the the results will be (almost) identical. I'm suggesting this as we won't be getting anything more recent than clang-format-12 in LLVM's pre-merge checks any time soon (not until LLVM 13 is released).
flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp | ||
---|---|---|
66 ↗ | (On Diff #345216) |
Thanks for your comments, @awarzynski. The version of clang-format that I build from the latest sources is 13.0.0. I've been in the habit of the last many months to always use the latest version of clang-format, but I'm not sure if there's general agreement on that policy. I'll post a message on the mailing list about this.
I removed changes to flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp, since it looks like they will cause problems for Doxygen, and I can't currently test for them.
clang-format: please reformat the code