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/include/clang/Frontend/CompilerInstance.h 
clang/include/clang/Lex/Preprocessor.h clang/lib/Frontend/CompilerInstance.cpp 
clang/lib/Lex/DependencyDirectivesScanner.cpp clang/lib/Lex/Lexer.cpp 
clang/lib/Lex/PPDirectives.cpp clang/lib/Lex/PPLexerChange.cpp 
clang/lib/Lex/Preprocessor.cpp clang/test/Modules/lookup.cpp 
clang/unittests/Lex/DependencyDirectivesScannerTest.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/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 0da56ae6a..a73ee1f7a 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -4475,13 +4475,12 @@ void Preprocessor::HandleObjCImportDirective(Token 
&AtTok, Token &ImportTok) {
   if (!DirToks.back().isOneOf(tok::semi, tok::eod))
     CollectPPImportSuffix(DirToks);
 
-
   SourceLocation End =
-    DirToks.back().isNot(tok::eod)
-        ? CheckEndOfDirective(ImportTok.getIdentifierInfo()->getName(),
-                              /*EnableMacros=*/false, &DirToks)
+      DirToks.back().isNot(tok::eod)
+          ? CheckEndOfDirective(ImportTok.getIdentifierInfo()->getName(),
+                                /*EnableMacros=*/false, &DirToks)
 
-        : DirToks.pop_back_val().getLocation();
+          : DirToks.pop_back_val().getLocation();
 
   Module *Imported = nullptr;
   if (getLangOpts().Modules) {

``````````

</details>


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

Reply via email to