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-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h 
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp 
clang-tools-extra/clangd/Config.h clang-tools-extra/clangd/Headers.h 
clang-tools-extra/clangd/Protocol.h 
clang-tools-extra/clangd/SystemIncludeExtractor.cpp 
clang-tools-extra/clangd/index/Ref.h clang-tools-extra/clangd/index/SymbolID.h 
clang-tools-extra/clangd/index/dex/Token.h 
clang-tools-extra/clangd/index/dex/Trigram.h 
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Types.h 
clang/include/clang/AST/APValue.h clang/include/clang/AST/ASTContext.h 
clang/include/clang/AST/ASTTypeTraits.h clang/include/clang/AST/BaseSubobject.h 
clang/include/clang/AST/CharUnits.h clang/include/clang/AST/DeclID.h 
clang/include/clang/AST/DeclarationName.h clang/include/clang/AST/GlobalDecl.h 
clang/include/clang/AST/NestedNameSpecifier.h 
clang/include/clang/AST/Redeclarable.h clang/include/clang/AST/TypeOrdering.h 
clang/include/clang/Analysis/Analyses/LifetimeSafety/Utils.h 
clang/include/clang/Analysis/CallGraph.h 
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h 
clang/include/clang/Analysis/FlowSensitive/Formula.h 
clang/include/clang/Analysis/ProgramPoint.h 
clang/include/clang/Analysis/RetainSummaryManager.h 
clang/include/clang/Basic/DirectoryEntry.h 
clang/include/clang/Basic/FileEntry.h 
clang/include/clang/Basic/IdentifierTable.h clang/include/clang/Basic/Module.h 
clang/include/clang/Basic/SourceLocation.h 
clang/include/clang/Basic/TokenKinds.h 
clang/include/clang/DependencyScanning/DependencyGraph.h 
clang/include/clang/Sema/ScopeInfo.h clang/include/clang/Sema/SemaCUDA.h 
clang/include/clang/Sema/Weak.h clang/include/clang/Serialization/ASTBitCodes.h 
clang/include/clang/Tooling/Inclusions/StandardLibrary.h 
clang/lib/APINotes/APINotesFormat.h clang/lib/AST/APValue.cpp 
clang/lib/AST/ExprConstant.cpp clang/lib/AST/ItaniumCXXABI.cpp 
clang/lib/CodeGen/CGDebugInfo.cpp 
clang/lib/CodeGen/CGObjCMacConstantLiteralUtil.h 
clang/lib/CodeGen/CodeGenTBAA.h clang/lib/Sema/SemaStmt.cpp 
clang/lib/StaticAnalyzer/Core/CallEvent.cpp 
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp 
clang/tools/libclang/CXCursor.cpp clang/tools/libclang/Indexing.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/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 5343e1d6f..7601d68b1 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -734,7 +734,8 @@ namespace llvm {
 template<> struct DenseMapInfo<ObjectUnderConstruction> {
   using Base = DenseMapInfo<APValue::LValueBase>;
   static ObjectUnderConstruction getEmptyKey() {
-    return {Base::getEmptyKey(), {}}; }
+    return {Base::getEmptyKey(), {}};
+  }
   static unsigned getHashValue(const ObjectUnderConstruction &Object) {
     return hash_value(Object);
   }

``````````

</details>


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

Reply via email to