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,c -- 
clang/test/Preprocessor/Inputs/has-include-next-absolute/test_header.h 
clang/test/Preprocessor/has_include_next_absolute.c 
clang/lib/Lex/PPMacroExpansion.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/Lex/PPMacroExpansion.cpp 
b/clang/lib/Lex/PPMacroExpansion.cpp
index 16a3d9e66..99378b7b3 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1133,19 +1133,19 @@ static bool HasExtension(const Preprocessor &PP, 
StringRef Extension) {
 
 /// Result of consuming __has_include/__has_include_next tokens.
 struct HasIncludeResult {
-  bool Valid;              // Whether token parsing succeeded.
-  StringRef Filename;      // The parsed filename.
-  SourceLocation FileLoc;  // Location of the filename token.
-  bool IsAngled;           // True for <...>, false for "...".
+  bool Valid;             // Whether token parsing succeeded.
+  StringRef Filename;     // The parsed filename.
+  SourceLocation FileLoc; // Location of the filename token.
+  bool IsAngled;          // True for <...>, false for "...".
 };
 
 /// ConsumeHasIncludeTokens - Consume the tokens for a '__has_include("path")'
 /// or '__has_include_next("path")' expression.
 /// Returns a HasIncludeResult indicating whether parsing succeeded and
 /// providing the filename if so.
-static HasIncludeResult ConsumeHasIncludeTokens(Token &Tok, IdentifierInfo *II,
-                                                Preprocessor &PP,
-                                                SmallString<128> 
&FilenameBuffer) {
+static HasIncludeResult
+ConsumeHasIncludeTokens(Token &Tok, IdentifierInfo *II, Preprocessor &PP,
+                        SmallString<128> &FilenameBuffer) {
   HasIncludeResult Result = {false, StringRef(), SourceLocation(), false};
 
   // Save the location of the current token.  If a '(' is later found, use

``````````

</details>


https://github.com/llvm/llvm-project/pull/173721
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to