[flang-commits] [flang] [Flang][OpenMP] Fix compilation error when a line with Fixed Source Form Conditional Compilation Sentinels is a continuation line (PR #70309)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 26 02:06:29 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 339faffd053b60bee3515fe7c4cca5e76f2cf427 3648e97238c7d1e15ac0a4357a6f3ebe58b835d8 -- flang/lib/Parser/prescan.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Parser/prescan.cpp b/flang/lib/Parser/prescan.cpp
index d0495df2d634..8ac809a8cfcc 100644
--- a/flang/lib/Parser/prescan.cpp
+++ b/flang/lib/Parser/prescan.cpp
@@ -998,8 +998,7 @@ const char *Prescanner::FixedFormContinuationLine(bool mightNeedSpace) {
   tabInCurrentLine_ = false;
   char col1{*nextLine_};
   LineClassification nextLine{ClassifyLine(nextLine_)};
-  if (nextLine.kind ==
-      LineClassification::Kind::CompilerDirective) {
+  if (nextLine.kind == LineClassification::Kind::CompilerDirective) {
     // Must be a continued compiler directive.
     int j{1};
     for (; j < 5; ++j) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/70309


More information about the flang-commits mailing list