llvm/flang/runtime
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
..
allocatable.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
allocatable.h
buffer.cpp
buffer.h [flang] Fix Boolean flag arguments 2021-04-14 10:19:44 -07:00
c-or-cpp.h
character.cpp [flang] Change capitalization for Adjustl/r 2021-06-04 08:34:53 +00:00
character.h [flang] Remove interfaces for Character[Min|Max][Val|Loc]. NFC 2021-04-28 07:58:06 +00:00
CMakeLists.txt [flang] Add initial implementation for CPU_TIME 2021-06-14 07:48:09 +00:00
complex-reduction.c [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
complex-reduction.h [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
config.h.cmake
connection.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
connection.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
copy.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
copy.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
cpp-type.h [flang] Implement reductions in the runtime 2021-04-01 11:23:50 -07:00
derived.cpp
derived.h
descriptor-io.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
descriptor.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
descriptor.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
dot-product.cpp [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
edit-input.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
edit-input.h
edit-output.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
edit-output.h
entry-names.h [flang] Implement reductions in the runtime 2021-04-01 11:23:50 -07:00
environment.cpp
environment.h
extrema.cpp [flang] Implement NORM2 in the runtime 2021-05-07 13:23:21 -07:00
file.cpp
file.h
findloc.cpp [flang] (NFC) Break up flang/runtime/reduction.cpp 2021-04-22 15:24:10 -07:00
format-implementation.h
format.cpp
format.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
internal-unit.cpp
internal-unit.h
io-api.cpp [flang] Support legacy extension OPEN(ACCESS='APPEND') 2021-05-13 11:51:20 -07:00
io-api.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
io-error.cpp [flang] Fix race condition in runtime 2021-05-06 11:09:30 -07:00
io-error.h [flang] Handle END= situations better in runtime input 2021-04-14 09:34:14 -07:00
io-stmt.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
io-stmt.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
iostat.cpp
iostat.h
ISO_Fortran_binding.cpp [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
lock.h
magic-numbers.h
main.cpp
main.h
matmul.cpp [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
matmul.h [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
memory.cpp
memory.h
misc-intrinsic.cpp [flang] TRANSFER() intrinsic function 2021-04-02 10:41:37 -07:00
misc-intrinsic.h [flang] TRANSFER() intrinsic function 2021-04-02 10:41:37 -07:00
namelist.cpp [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
namelist.h [flang] Implement NAMELIST I/O in the runtime 2021-05-06 11:18:36 -07:00
numeric.cpp [flang] Define missing & needed IEEE_ARITHMETIC symbols 2021-04-19 11:44:43 -07:00
numeric.h [flang] Define missing & needed IEEE_ARITHMETIC symbols 2021-04-19 11:44:43 -07:00
pgmath.h.inc
product.cpp [flang] (NFC) Break up flang/runtime/reduction.cpp 2021-04-22 15:24:10 -07:00
random.cpp [flang] Fixed simple typo in runtime code 2021-06-10 11:14:25 -06:00
random.h [flang] RANDOM_NUMBER, RANDOM_SEED, RANDOM_INIT in runtime 2021-04-09 17:03:11 -07:00
reduction-templates.h [flang] (NFC) Break up flang/runtime/reduction.cpp 2021-04-22 15:24:10 -07:00
reduction.cpp [flang] Implement DOT_PRODUCT in the runtime 2021-05-13 10:40:07 -07:00
reduction.h [flang] Implement MATMUL in the runtime 2021-05-18 10:59:52 -07:00
stat.cpp
stat.h
stop.cpp
stop.h
sum.cpp [flang] (NFC) Break up flang/runtime/reduction.cpp 2021-04-22 15:24:10 -07:00
terminator.cpp [flang] Fix race condition in runtime 2021-05-06 11:09:30 -07:00
terminator.h [flang] Implement IPARITY, PARITY, and FINDLOC reductions 2021-04-20 12:25:42 -07:00
time-intrinsic.cpp [flang] Add POSIX implementation for CPU_TIME 2021-06-14 09:41:11 +00:00
time-intrinsic.h [flang] Define the API for CPU_TIME 2021-06-09 08:20:58 +00:00
tools.cpp [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
tools.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
transformational.cpp [flang] Remove unused variable 2021-05-20 14:08:43 -07:00
transformational.h [flang] Fix broken build of flang with clang 2021-05-20 13:49:31 -07:00
type-code.cpp [flang] Implement reductions in the runtime 2021-04-01 11:23:50 -07:00
type-code.h [flang] Correct TypeCode::IsLogical() 2021-04-12 12:57:22 -07:00
type-info.h [flang] Implement more transformational intrinsic functions in runtime 2021-05-20 13:22:01 -07:00
unit-map.cpp
unit-map.h
unit.cpp flang: include limits 2021-05-24 11:12:12 +02:00
unit.h [flang] Runtime must defer formatted/unformatted determination 2021-05-06 11:06:43 -07:00