[flang-commits] [flang] [flang] Fix issue when macro is followed by OpenMP pragma (PR #123035)

via flang-commits flang-commits at lists.llvm.org
Wed Jan 15 03:24:14 PST 2025


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 eb96c8c105226956c8ed5ab30699206f53de74f7 bfc3d201256ecbdc77402758dae955048384ef78 --extensions cpp -- 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 50a9193d0a..b928ed03a2 100644
--- a/flang/lib/Parser/prescan.cpp
+++ b/flang/lib/Parser/prescan.cpp
@@ -511,7 +511,7 @@ bool Prescanner::MustSkipToEndOfLine() const {
   if (inFixedForm_ && column_ > fixedFormColumnLimit_ && !tabInCurrentLine_) {
     return true; // skip over ignored columns in right margin (73:80)
   } else if (*at_ == '!' && !inCharLiteral_) {
-    return !IsCompilerDirectiveSentinel(at_+1);
+    return !IsCompilerDirectiveSentinel(at_ + 1);
   } else {
     return false;
   }

``````````

</details>


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


More information about the flang-commits mailing list