[flang-commits] [flang] [llvm] [flang] Implement IGNORE_TKR(P) (PR #165469)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 28 12:49:59 PDT 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 origin/main HEAD --extensions cpp,h -- flang/include/flang/Support/Fortran.h flang/lib/Semantics/check-call.cpp flang/lib/Semantics/check-declarations.cpp flang/lib/Semantics/mod-file.cpp flang/lib/Semantics/resolve-names.cpp flang/lib/Support/Fortran.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Support/Fortran.h b/flang/include/flang/Support/Fortran.h
index 1c8a118dd..cf39781c1 100644
--- a/flang/include/flang/Support/Fortran.h
+++ b/flang/include/flang/Support/Fortran.h
@@ -81,14 +81,14 @@ static constexpr int maxNameLen{63};
// !DIR$ IGNORE_TKR [[(letters) name] ... letters
// "A" expands to all of TKRDM
ENUM_CLASS(IgnoreTKR,
- Type, // T - don't check type category
- Kind, // K - don't check kind
- Rank, // R - don't check ranks
- Device, // D - don't check host/device residence
- Managed, // M - don't check managed storage
+ Type, // T - don't check type category
+ Kind, // K - don't check kind
+ Rank, // R - don't check ranks
+ Device, // D - don't check host/device residence
+ Managed, // M - don't check managed storage
Contiguous, // C - don't check for storage sequence association with a
// potentially non-contiguous object
- Pointer) // P - ignore pointer and allocatable matching
+ Pointer) // P - ignore pointer and allocatable matching
using IgnoreTKRSet = EnumSet<IgnoreTKR, 8>;
// IGNORE_TKR(A) = IGNORE_TKR(TKRDM)
static constexpr IgnoreTKRSet ignoreTKRAll{IgnoreTKR::Type, IgnoreTKR::Kind,
``````````
</details>
https://github.com/llvm/llvm-project/pull/165469
More information about the flang-commits
mailing list