[Lldb-commits] [lldb] a11efd4 - Add missing StringExtras.h includes
Author: Elliot Goodrich Date: 2023-07-08T20:06:21+01:00 New Revision: a11efd49266f6cf2a98bdf52428b0c9423158846 URL: https://github.com/llvm/llvm-project/commit/a11efd49266f6cf2a98bdf52428b0c9423158846 DIFF: https://github.com/llvm/llvm-project/commit/a11efd49266f6cf2a98bdf52428b0c9423158846.diff LOG: Add missing StringExtras.h includes In preparation for removing the `#include "llvm/ADT/StringExtras.h"` from the header to source file of `llvm/Support/Error.h`, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd4893fa1 and 39d8e6e22cd1. Differential Revision: https://reviews.llvm.org/D154763 Added: Modified: lldb/source/Host/common/File.cpp lldb/source/Host/common/Socket.cpp lldb/source/Host/common/XML.cpp llvm/lib/WindowsDriver/MSVCPaths.cpp openmp/libomptarget/src/omptarget.cpp Removed: diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 15e7a211e353e7..7c5d71d9426ead 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -31,6 +31,7 @@ #include "lldb/Utility/FileSpec.h" #include "lldb/Utility/Log.h" #include "lldb/Utility/VASPrintf.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/Errno.h" #include "llvm/Support/FileSystem.h" diff --git a/lldb/source/Host/common/Socket.cpp b/lldb/source/Host/common/Socket.cpp index c2fb5509034e5c..8ccb27fdd7f452 100644 --- a/lldb/source/Host/common/Socket.cpp +++ b/lldb/source/Host/common/Socket.cpp @@ -17,6 +17,7 @@ #include "lldb/Utility/Log.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/Errno.h" #include "llvm/Support/Error.h" #include "llvm/Support/Regex.h" diff --git a/lldb/source/Host/common/XML.cpp b/lldb/source/Host/common/XML.cpp index bb2a72938a5e2d..f480ef3166a443 100644 --- a/lldb/source/Host/common/XML.cpp +++ b/lldb/source/Host/common/XML.cpp @@ -9,6 +9,8 @@ #include "lldb/Host/Config.h" #include "lldb/Host/XML.h" +#include "llvm/ADT/StringExtras.h" + using namespace lldb; using namespace lldb_private; diff --git a/llvm/lib/WindowsDriver/MSVCPaths.cpp b/llvm/lib/WindowsDriver/MSVCPaths.cpp index f8c4259ec8f5ed..1c070bf1bf7d7d 100644 --- a/llvm/lib/WindowsDriver/MSVCPaths.cpp +++ b/llvm/lib/WindowsDriver/MSVCPaths.cpp @@ -9,6 +9,7 @@ #include "llvm/WindowsDriver/MSVCPaths.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/Path.h" diff --git a/openmp/libomptarget/src/omptarget.cpp b/openmp/libomptarget/src/omptarget.cpp index 9426d8a0ca76f6..45576c6cd80dc1 100644 --- a/openmp/libomptarget/src/omptarget.cpp +++ b/openmp/libomptarget/src/omptarget.cpp @@ -16,6 +16,7 @@ #include "private.h" #include "rtl.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/bit.h" #include ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [lldb] 5551657 - [lldb] Add missing StringExtras.h includes
Author: Elliot Goodrich Date: 2023-07-09T14:09:21+01:00 New Revision: 5551657b310b0f5f97b26288f87bc41a8050bf93 URL: https://github.com/llvm/llvm-project/commit/5551657b310b0f5f97b26288f87bc41a8050bf93 DIFF: https://github.com/llvm/llvm-project/commit/5551657b310b0f5f97b26288f87bc41a8050bf93.diff LOG: [lldb] Add missing StringExtras.h includes In preparation for removing the `#include "llvm/ADT/StringExtras.h"` from the header to source file of `llvm/Support/Error.h`, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd4893fa1, 39d8e6e22cd1, and a11efd49266f. Differential Revision: https://reviews.llvm.org/D154775 Added: Modified: lldb/source/Core/SourceLocationSpec.cpp lldb/source/Plugins/Process/Linux/Procfs.cpp lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h lldb/source/Utility/DataExtractor.cpp lldb/source/Utility/Event.cpp lldb/source/Utility/FileSpec.cpp lldb/source/Utility/Scalar.cpp lldb/source/Utility/StructuredData.cpp Removed: diff --git a/lldb/source/Core/SourceLocationSpec.cpp b/lldb/source/Core/SourceLocationSpec.cpp index 805291f7d59ae8..7165d04955d6f9 100644 --- a/lldb/source/Core/SourceLocationSpec.cpp +++ b/lldb/source/Core/SourceLocationSpec.cpp @@ -8,6 +8,7 @@ #include "lldb/Core/SourceLocationSpec.h" #include "lldb/Utility/StreamString.h" +#include "llvm/ADT/StringExtras.h" #include using namespace lldb; diff --git a/lldb/source/Plugins/Process/Linux/Procfs.cpp b/lldb/source/Plugins/Process/Linux/Procfs.cpp index c15c0c99133d19..8c279c7ab65339 100644 --- a/lldb/source/Plugins/Process/Linux/Procfs.cpp +++ b/lldb/source/Plugins/Process/Linux/Procfs.cpp @@ -8,6 +8,7 @@ #include "Procfs.h" #include "lldb/Host/linux/Support.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/Error.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Threading.h" diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h b/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h index c6e382d3825c9b..3e6766a204dd6f 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h +++ b/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.h @@ -13,6 +13,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/IntervalMap.h" +#include "llvm/ADT/SmallString.h" #include "llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h" #include "llvm/DebugInfo/CodeView/StringsAndChecksums.h" #include "llvm/DebugInfo/CodeView/SymbolRecord.h" diff --git a/lldb/source/Utility/DataExtractor.cpp b/lldb/source/Utility/DataExtractor.cpp index fc8160ff3053cf..e9be0cba81f0c3 100644 --- a/lldb/source/Utility/DataExtractor.cpp +++ b/lldb/source/Utility/DataExtractor.cpp @@ -23,6 +23,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/LEB128.h" #include "llvm/Support/MD5.h" #include "llvm/Support/MathExtras.h" diff --git a/lldb/source/Utility/Event.cpp b/lldb/source/Utility/Event.cpp index efab7600998f12..fcc367f43f935e 100644 --- a/lldb/source/Utility/Event.cpp +++ b/lldb/source/Utility/Event.cpp @@ -15,6 +15,8 @@ #include "lldb/Utility/StreamString.h" #include "lldb/lldb-enumerations.h" +#include "llvm/ADT/StringExtras.h" + #include #include diff --git a/lldb/source/Utility/FileSpec.cpp b/lldb/source/Utility/FileSpec.cpp index 707033c1f8d6b8..eb34ef97cea0b2 100644 --- a/lldb/source/Utility/FileSpec.cpp +++ b/lldb/source/Utility/FileSpec.cpp @@ -12,6 +12,7 @@ #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/ErrorOr.h" diff --git a/lldb/source/Utility/Scalar.cpp b/lldb/source/Utility/Scalar.cpp index 4b80f6adca06a6..791c0fb7435291 100644 --- a/lldb/source/Utility/Scalar.cpp +++ b/lldb/source/Utility/Scalar.cpp @@ -16,6 +16,7 @@ #include "lldb/lldb-types.h" #include "llvm/ADT/APSInt.h" #include "llvm/ADT/SmallString.h" +#include "llvm/ADT/StringExtras.h" #include #include diff --git a/lldb/source/Utility/StructuredData.cpp b/lldb/source/Utility/StructuredData.cpp index be50df323facdd..c0ed1e5a5c73e4 100644 --- a/lldb/source/Utility/StructuredData.cpp +++ b/lldb/source/Utility/StructuredData.cpp @@ -9,6 +9,7 @@ #include "lldb/Utility/StructuredData.h" #include "lldb/Utility/FileSpec.h" #include "lldb/Utility/Status.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/MemoryBuffer.h" #include #include ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [lldb] 90bfe2d - [lldb] Add missing StringExtras.h includes
Author: Elliot Goodrich Date: 2023-07-13T08:39:59+01:00 New Revision: 90bfe2df25e7eed4f3af33623ad26a028d94cef9 URL: https://github.com/llvm/llvm-project/commit/90bfe2df25e7eed4f3af33623ad26a028d94cef9 DIFF: https://github.com/llvm/llvm-project/commit/90bfe2df25e7eed4f3af33623ad26a028d94cef9.diff LOG: [lldb] Add missing StringExtras.h includes In preparation for removing the #include "llvm/ADT/StringExtras.h" from the header to source file of llvm/Support/Error.h, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd4893fa1, 39d8e6e22cd1, a11efd49266f, and 5551657b310b. Differential Revision: https://reviews.llvm.org/D155018 Added: Modified: lldb/tools/lldb-vscode/VSCode.cpp Removed: diff --git a/lldb/tools/lldb-vscode/VSCode.cpp b/lldb/tools/lldb-vscode/VSCode.cpp index b1c6817c2128b9..bc6129c541d49e 100644 --- a/lldb/tools/lldb-vscode/VSCode.cpp +++ b/lldb/tools/lldb-vscode/VSCode.cpp @@ -14,6 +14,7 @@ #include "LLDBUtils.h" #include "VSCode.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/FormatVariadic.h" #if defined(_WIN32) ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [lldb] 3ff3af3 - [lldb] Add missing StringExtras.h includes
Author: Elliot Goodrich Date: 2023-07-13T21:06:25+01:00 New Revision: 3ff3af3086da5df10d3991914262cef724156977 URL: https://github.com/llvm/llvm-project/commit/3ff3af3086da5df10d3991914262cef724156977 DIFF: https://github.com/llvm/llvm-project/commit/3ff3af3086da5df10d3991914262cef724156977.diff LOG: [lldb] Add missing StringExtras.h includes In preparation for removing the #include "llvm/ADT/StringExtras.h" from the header to source file of llvm/Support/Error.h, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd4893fa1, 39d8e6e22cd1, a11efd49266f, 5551657b310b, and 90bfe2df25e7. Differential Revision: https://reviews.llvm.org/D155178 Added: Modified: lldb/unittests/Symbol/PostfixExpressionTest.cpp lldb/unittests/SymbolFile/NativePDB/UdtRecordCompleterTests.cpp Removed: diff --git a/lldb/unittests/Symbol/PostfixExpressionTest.cpp b/lldb/unittests/Symbol/PostfixExpressionTest.cpp index 0eaa9d829a656f..1f9b2af4ea7a71 100644 --- a/lldb/unittests/Symbol/PostfixExpressionTest.cpp +++ b/lldb/unittests/Symbol/PostfixExpressionTest.cpp @@ -9,6 +9,7 @@ #include "lldb/Symbol/PostfixExpression.h" #include "lldb/Utility/DataExtractor.h" #include "lldb/Utility/StreamString.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/DebugInfo/DIContext.h" #include "llvm/DebugInfo/DWARF/DWARFExpression.h" #include "llvm/Support/FormatVariadic.h" diff --git a/lldb/unittests/SymbolFile/NativePDB/UdtRecordCompleterTests.cpp b/lldb/unittests/SymbolFile/NativePDB/UdtRecordCompleterTests.cpp index 03c5c9a3ecc8de..17284b61b9a6ee 100644 --- a/lldb/unittests/SymbolFile/NativePDB/UdtRecordCompleterTests.cpp +++ b/lldb/unittests/SymbolFile/NativePDB/UdtRecordCompleterTests.cpp @@ -7,6 +7,7 @@ //===--===// #include "Plugins/SymbolFile/NativePDB/UdtRecordCompleter.h" +#include "llvm/ADT/StringExtras.h" #include "gmock/gmock.h" #include "gtest/gtest.h" ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits