llvm-project/flang/lib/Lower
Diana Picus 45cd405dc0 [flang] Add clang-tidy check for braces around if
Flang diverges from the llvm coding style in that it requires braces
around the bodies of if/while/etc statements, even when the body is
a single statement.

This commit adds the readability-braces-around-statements check to
flang's clang-tidy config file. Hopefully the premerge bots will pick it
up and report violations in Phabricator.

We also explicitly disable the check in the directories corresponding to
the Lower and Optimizer libraries, which rely heavily on mlir and llvm
and therefore follow their coding style. Likewise for the tools
directory.

We also fix any outstanding violations in the runtime and in
lib/Semantics.

Differential Revision: https://reviews.llvm.org/D104100
2021-06-16 09:13:53 +00:00
..
.clang-format [flang] [LLVMify F18] Compiler module folders should have capitalised names (flang-compiler/f18#980) 2020-02-25 07:11:52 -08:00
.clang-tidy [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
CMakeLists.txt Remove `Ops` suffix from dialect library names 2020-09-30 18:00:44 -07:00
CharacterExpr.cpp [flang][fir] Add remaining Ops. Updates to pre-existing Ops. 2021-02-26 17:21:35 -08:00
CharacterRuntime.cpp [flang] Use mlir::OpState::operator->() to get to methods of mlir::Operation. 2020-12-14 20:04:53 +01:00
Coarray.cpp [flang] Add coarray lowering hooks. 2020-06-29 14:24:13 -07:00
ComplexExpr.cpp [flang][NFC] Rename complex type. 2021-02-01 15:31:48 -08:00
ConvertExpr.cpp [flang] Fix shared library builds for lib/Lower. 2020-07-16 10:18:14 +01:00
ConvertType.cpp [flang][fir] Update FIR's character type. 2021-02-08 08:20:04 -08:00
DoLoopHelper.cpp [flang][NFCI] Relpace `LoopOp` Op with `DoLoopOp` Op in FIR Dialect 2021-02-03 22:57:49 +05:30
FIRBuilder.cpp Revert "Revert "Reorder MLIRContext location in BuiltinAttributes.h"" 2021-02-08 10:39:58 +01:00
IO.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
IntervalSet.h [flang][fir] Upstream the pre-FIR tree changes. 2021-03-10 07:45:58 -08:00
IntrinsicCall.cpp [flang] Replace Arithmetic Ops with their builtin conunterpart 2021-03-17 08:58:10 +05:30
Mangler.cpp [Flang] Changes to mangling code 2021-04-09 16:42:06 +01:00
OpenACC.cpp [flang][NFC] Add source line to lowering TODO messages 2021-02-23 09:01:35 +01:00
OpenMP.cpp [flang][OpenMP] Remove `OmpEndLoopDirective` handles from code. 2021-04-16 00:00:07 +05:30
PFTBuilder.cpp [flang] iwyu fixes after ba7a92c01e 2021-04-21 11:10:45 -04:00
RTBuilder.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
SymbolMap.h [flang] Add CHARACTER type lowering helpers and runtime. 2020-06-26 11:01:52 -07:00