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 --
clang/test/APINotes/Inputs/Headers/WhereParametersDiagnostics.h
clang/test/APINotes/Inputs/WhereParametersDuplicateSelectorDiag/WhereParametersDiagnostics.h
clang/test/APINotes/where-parameters-diagnostics.cpp
clang/include/clang/APINotes/APINotesReader.h
clang/include/clang/APINotes/Types.h clang/lib/APINotes/APINotesReader.cpp
clang/lib/APINotes/APINotesTypes.cpp
clang/lib/APINotes/APINotesYAMLCompiler.cpp clang/lib/Sema/SemaAPINotes.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/clang/lib/Sema/SemaAPINotes.cpp b/clang/lib/Sema/SemaAPINotes.cpp
index 043af7e57..c2ec720b7 100644
--- a/clang/lib/Sema/SemaAPINotes.cpp
+++ b/clang/lib/Sema/SemaAPINotes.cpp
@@ -1140,7 +1140,7 @@ static void collectOverloadParameterSelectors(const Sema
&S, FunctionDecl *FD,
if (auto Candidates = getAPINotesParameterSelectorCandidates(S, Candidate))
Set.add(*Candidates);
};
-
+
for (Decl *D : FD->getDeclContext()->noload_decls()) {
auto *ND = dyn_cast<NamedDecl>(D);
if (!ND || ND->getDeclName() != FD->getDeclName())
``````````
</details>
https://github.com/llvm/llvm-project/pull/209408
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits