Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9215c0b
Add clang-format files for FIR source (LLVM style)
jeanPerier Jan 21, 2020
c36740a
Add ASTBuilder structure to help lowering the parse-tree
jeanPerier Jan 28, 2020
5c3afc0
review comments
schweitzpgi Jan 28, 2020
e6345f5
Address PR959 review comments
jeanPerier Jan 29, 2020
5bb28e3
[review 959] "improved readability"
schweitzpgi Jan 30, 2020
3d333b6
[review 959] Use std::any_of and isAction renaming
jeanPerier Jan 30, 2020
3ccfba1
[review 959] Make ASTBuilder::pgm a std::unique_ptr
jeanPerier Jan 30, 2020
132cd6d
[review 959] Make Evaluation::subs a std::unique_ptr
jeanPerier Jan 30, 2020
4a73dec
[review 959] Namespace changes
jeanPerier Jan 30, 2020
16ab9da
[review 959] Fix file name in copyright and add/update comments
jeanPerier Jan 31, 2020
32f77b6
[review 959] add comment regarding cstr argument
jeanPerier Jan 31, 2020
b400323
[review 959] Remove unused scope members. Make CGJump::target a refer…
jeanPerier Jan 31, 2020
02e4c14
[review 959] Change parse tree node classification and hide pointers
jeanPerier Jan 31, 2020
b66c419
[review 959] Protect ParentType and ProgramUnit pointers
jeanPerier Feb 3, 2020
1bbdc32
[review 959] Combine ASTBuilder Pre/Post visitor functions
jeanPerier Feb 4, 2020
6ade615
[review 959] Combine visitor and functions where appropriate.
jeanPerier Feb 4, 2020
2d87f1d
[review 959] Reverts main .clang-format change
jeanPerier Feb 4, 2020
2974de2
[review 959] Fix template step issue with clang: REMOVE AT REBASE
jeanPerier Feb 4, 2020
37861c0
[review 959] Rename AST to Pre-Fir Tree (PFT)
jeanPerier Feb 5, 2020
5335107
[review 959] Add option to dump the Pre-FIR Tree in f18 driver
jeanPerier Jan 30, 2020
87bdb78
[rewview 959] Add pft lit tests and fix issues
jeanPerier Feb 10, 2020
009bbda
[review 959] Finsish writing PFT tests. Related fixes and lit config …
jeanPerier Feb 11, 2020
625e23a
[review 959] Fix capture of WhereBodyConstruct AssignementStmt in PFT
jeanPerier Feb 11, 2020
77c0a3b
[review 959] Keep PFT dump human readable and update tests. Fix PFT b…
jeanPerier Feb 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/fir/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: LLVM
AlwaysBreakTemplateDeclarations: Yes
11 changes: 4 additions & 7 deletions include/flang/common/template.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,12 @@ template<typename... Ts> struct VariantToTupleHelper<std::variant<Ts...>> {
template<typename VARIANT>
using VariantToTuple = typename VariantToTupleHelper<VARIANT>::type;

template<typename A, typename B, typename... REST>
struct AreTypesDistinctHelper {
template<typename A, typename... REST> struct AreTypesDistinctHelper {
static constexpr bool value() {
if constexpr (std::is_same_v<A, B>) {
return false;
}
if constexpr (sizeof...(REST) > 0) {
return AreTypesDistinctHelper<A, REST...>::value() &&
AreTypesDistinctHelper<B, REST...>::value();
// extra () for clang-format
return ((... && !std::is_same_v<A, REST>)) &&
AreTypesDistinctHelper<REST...>::value();
}
return true;
}
Expand Down
2 changes: 2 additions & 0 deletions include/flang/lower/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: LLVM
AlwaysBreakTemplateDeclarations: Yes
Loading