[Lldb-commits] [clang] [lldb] [clang] remove IsDefaulted bit from TemplateArgument (PR #155120)

via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 23 16:18:46 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/AST/TemplateBase.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ASTImporter.cpp clang/lib/AST/TemplateBase.cpp clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h clang/lib/Sema/HLSLExternalSemaSource.cpp clang/lib/Sema/SemaTemplate.cpp clang/lib/Serialization/ASTWriterDecl.cpp clang/test/DebugInfo/CXX/template-parameter.cpp clang/test/DebugInfo/CXX/template.cpp clang/test/DebugInfo/Generic/preferred_name-chain.cpp clang/test/DebugInfo/Generic/preferred_name.cpp clang/test/Modules/gmodules-preferred-name-typedef.cpp clang/test/SemaCXX/cxx14-compat.cpp clang/unittests/AST/ASTImporterTest.cpp clang/unittests/AST/DeclTest.cpp lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp b/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp
index fc9bead53..563449cd8 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp
@@ -239,8 +239,7 @@ std::optional<Decl *> CxxModuleHandler::tryInstantiateStdTemplate(Decl *d) {
         LLDB_LOG_ERROR(log, type.takeError(), "Couldn't import type: {0}");
         return std::nullopt;
       }
-      imported_args.push_back(
-          TemplateArgument(*type, /*isNullPtr=*/false));
+      imported_args.push_back(TemplateArgument(*type, /*isNullPtr=*/false));
       break;
     }
     case TemplateArgument::Integral: {
@@ -251,8 +250,8 @@ std::optional<Decl *> CxxModuleHandler::tryInstantiateStdTemplate(Decl *d) {
         LLDB_LOG_ERROR(log, type.takeError(), "Couldn't import type: {0}");
         return std::nullopt;
       }
-      imported_args.push_back(TemplateArgument(d->getASTContext(), integral,
-                                               *type));
+      imported_args.push_back(
+          TemplateArgument(d->getASTContext(), integral, *type));
       break;
     }
     default:

``````````

</details>


https://github.com/llvm/llvm-project/pull/155120


More information about the lldb-commits mailing list