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 h,cpp -- 
clang/lib/Basic/Diagnostic.cpp clang/lib/Basic/SanitizerSpecialCaseList.cpp 
clang/unittests/Basic/DiagnosticTest.cpp 
llvm/include/llvm/Support/GlobPattern.h 
llvm/include/llvm/Support/SpecialCaseList.h llvm/lib/Support/GlobPattern.cpp 
llvm/lib/Support/SpecialCaseList.cpp
``````````

: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/llvm/lib/Support/SpecialCaseList.cpp 
b/llvm/lib/Support/SpecialCaseList.cpp
index 6e569768e..c65cb977c 100644
--- a/llvm/lib/Support/SpecialCaseList.cpp
+++ b/llvm/lib/Support/SpecialCaseList.cpp
@@ -72,8 +72,8 @@ unsigned SpecialCaseList::Matcher::match(StringRef Query,
   static bool HaveWindowsPathStyle =
       llvm::sys::path::is_style_windows(llvm::sys::path::Style::native);
   for (const auto &Glob : reverse(Globs))
-    if (Glob->Pattern.match(Query, /*IsSlashAgnostic=*/(HaveWindowsPathStyle &&
-                                                        IsFilename)))
+    if (Glob->Pattern.match(
+            Query, /*IsSlashAgnostic=*/(HaveWindowsPathStyle && IsFilename)))
       return Glob->LineNo;
   for (const auto &[Regex, LineNumber] : reverse(RegExes))
     if (Regex->match(Query))

``````````

</details>


https://github.com/llvm/llvm-project/pull/149886
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to