[flang-commits] [flang] [Flang][OpenMP] Fix comments that should not be Sentinels on fixed format. (#68653) (PR #68911)
via flang-commits
flang-commits at lists.llvm.org
Thu Oct 12 09:42:57 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 7b12d8bf8a1ff1540e32345b045f813644708a71 97625313c4195cd3fab0594c84252d9664b0b078 -- 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 645e0bc525be..3496f46853d2 100644
--- a/flang/lib/Parser/prescan.cpp
+++ b/flang/lib/Parser/prescan.cpp
@@ -1174,7 +1174,7 @@ Prescanner::IsFixedFormCompilerDirectiveLine(const char *start) const {
if (!IsFixedFormCommentChar(col1)) {
return std::nullopt;
}
- if (p[0] != '$'){
+ if (p[0] != '$') {
return std::nullopt;
};
char sentinel[5], *sp{sentinel};
@@ -1184,7 +1184,7 @@ Prescanner::IsFixedFormCompilerDirectiveLine(const char *start) const {
if (*p == '\n' || *p == '\t') {
break;
}
- if (!IsDecimalDigit(*p)){
+ if (!IsDecimalDigit(*p)) {
*sp++ = ToLowerCaseLetter(*p);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/68911
More information about the flang-commits
mailing list