--- /dev/null
+---
+# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
+BasedOnStyle: LLVM
+SpacesBeforeTrailingComments: 2
+AlignEscapedNewlines: DontAlign
+AllowShortCaseLabelsOnASingleLine: true
+AllowShortIfStatementsOnASingleLine: true
+ConstructorInitializerIndentWidth: 2
+AlignAfterOpenBracket: AlwaysBreak
+AlignOperands: false
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignTrailingComments: false
+SpaceAfterTemplateKeyword: false
+BreakBeforeBinaryOperators: All
+BreakBeforeTernaryOperators: true
+ContinuationIndentWidth: 2
+...
+
+# vim:set filetype=yaml:
@touch $@
parse-tree.h: format-specification.h idioms.h indirection.h position.h
@touch $@
+
+
+CLANG_FORMAT=/proj/pgi/flang/x86_64/flang-dev/bin/clang-format
+formatted:
+ @mkdir -p formatted
+ @for x in *.h *.cc; do \
+ $(CLANG_FORMAT) < $$x > formatted/$$x; \
+ done
+
+.PHONY: formatted