[llvm] [llvm] annotate interfaces in llvm/Support for DLL export (PR #136014)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 08:25:49 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 h,cpp -- llvm/include/llvm/Support/AArch64AttributeParser.h llvm/include/llvm/Support/AMDGPUMetadata.h llvm/include/llvm/Support/ARMAttributeParser.h llvm/include/llvm/Support/ARMBuildAttributes.h llvm/include/llvm/Support/ARMWinEH.h llvm/include/llvm/Support/Allocator.h llvm/include/llvm/Support/BalancedPartitioning.h llvm/include/llvm/Support/Base64.h llvm/include/llvm/Support/BinaryStreamError.h llvm/include/llvm/Support/BinaryStreamReader.h llvm/include/llvm/Support/BinaryStreamRef.h llvm/include/llvm/Support/BinaryStreamWriter.h llvm/include/llvm/Support/BlockFrequency.h llvm/include/llvm/Support/BranchProbability.h llvm/include/llvm/Support/BuryPointer.h llvm/include/llvm/Support/COM.h llvm/include/llvm/Support/CRC.h llvm/include/llvm/Support/CSKYAttributeParser.h llvm/include/llvm/Support/CSKYAttributes.h llvm/include/llvm/Support/CachePruning.h llvm/include/llvm/Support/Caching.h llvm/include/llvm/Support/Chrono.h llvm/include/llvm/Support/CommandLine.h llvm/include/llvm/Support/Compression.h llvm/include/llvm/Support/ConvertEBCDIC.h llvm/include/llvm/Support/ConvertUTF.h llvm/include/llvm/Support/CrashRecoveryContext.h llvm/include/llvm/Support/DJB.h llvm/include/llvm/Support/DataExtractor.h llvm/include/llvm/Support/Debug.h llvm/include/llvm/Support/DebugCounter.h llvm/include/llvm/Support/DivisionByConstantInfo.h llvm/include/llvm/Support/DynamicLibrary.h llvm/include/llvm/Support/ELFAttrParserCompact.h llvm/include/llvm/Support/ELFAttrParserExtended.h llvm/include/llvm/Support/ELFAttributes.h llvm/include/llvm/Support/Errno.h llvm/include/llvm/Support/Error.h llvm/include/llvm/Support/ErrorHandling.h llvm/include/llvm/Support/ExponentialBackoff.h llvm/include/llvm/Support/ExtensibleRTTI.h llvm/include/llvm/Support/FileCollector.h llvm/include/llvm/Support/FileOutputBuffer.h llvm/include/llvm/Support/FileSystem.h llvm/include/llvm/Support/FileUtilities.h llvm/include/llvm/Support/Format.h llvm/include/llvm/Support/FormatVariadic.h llvm/include/llvm/Support/FormatVariadicDetails.h llvm/include/llvm/Support/FormattedStream.h llvm/include/llvm/Support/GlobPattern.h llvm/include/llvm/Support/GraphWriter.h llvm/include/llvm/Support/HexagonAttributeParser.h llvm/include/llvm/Support/HexagonAttributes.h llvm/include/llvm/Support/InitLLVM.h llvm/include/llvm/Support/InstructionCost.h llvm/include/llvm/Support/JSON.h llvm/include/llvm/Support/KnownBits.h llvm/include/llvm/Support/LEB128.h llvm/include/llvm/Support/LineIterator.h llvm/include/llvm/Support/Locale.h llvm/include/llvm/Support/LockFileManager.h llvm/include/llvm/Support/MD5.h llvm/include/llvm/Support/MSP430AttributeParser.h llvm/include/llvm/Support/MSP430Attributes.h llvm/include/llvm/Support/ManagedStatic.h llvm/include/llvm/Support/MathExtras.h llvm/include/llvm/Support/MemAlloc.h llvm/include/llvm/Support/Memory.h llvm/include/llvm/Support/MemoryBuffer.h llvm/include/llvm/Support/MemoryBufferRef.h llvm/include/llvm/Support/ModRef.h llvm/include/llvm/Support/Mustache.h llvm/include/llvm/Support/NativeFormatting.h llvm/include/llvm/Support/OptimizedStructLayout.h llvm/include/llvm/Support/PGOOptions.h llvm/include/llvm/Support/Parallel.h llvm/include/llvm/Support/Path.h llvm/include/llvm/Support/PluginLoader.h llvm/include/llvm/Support/PrettyStackTrace.h llvm/include/llvm/Support/Process.h llvm/include/llvm/Support/Program.h llvm/include/llvm/Support/RISCVAttributeParser.h llvm/include/llvm/Support/RISCVAttributes.h llvm/include/llvm/Support/RISCVISAUtils.h llvm/include/llvm/Support/RandomNumberGenerator.h llvm/include/llvm/Support/Recycler.h llvm/include/llvm/Support/Regex.h llvm/include/llvm/Support/SHA1.h llvm/include/llvm/Support/SHA256.h llvm/include/llvm/Support/SMTAPI.h llvm/include/llvm/Support/ScaledNumber.h llvm/include/llvm/Support/ScopedPrinter.h llvm/include/llvm/Support/Signals.h llvm/include/llvm/Support/Signposts.h llvm/include/llvm/Support/SipHash.h llvm/include/llvm/Support/SmallVectorMemoryBuffer.h llvm/include/llvm/Support/SourceMgr.h llvm/include/llvm/Support/SpecialCaseList.h llvm/include/llvm/Support/StringSaver.h llvm/include/llvm/Support/SuffixTree.h llvm/include/llvm/Support/SuffixTreeNode.h llvm/include/llvm/Support/SystemUtils.h llvm/include/llvm/Support/TarWriter.h llvm/include/llvm/Support/TargetSelect.h llvm/include/llvm/Support/ThreadPool.h llvm/include/llvm/Support/Threading.h llvm/include/llvm/Support/TimeProfiler.h llvm/include/llvm/Support/Timer.h llvm/include/llvm/Support/ToolOutputFile.h llvm/include/llvm/Support/TypeSize.h llvm/include/llvm/Support/Unicode.h llvm/include/llvm/Support/Valgrind.h llvm/include/llvm/Support/VersionTuple.h llvm/include/llvm/Support/VirtualFileSystem.h llvm/include/llvm/Support/Windows/WindowsSupport.h llvm/include/llvm/Support/WindowsError.h llvm/include/llvm/Support/WithColor.h llvm/include/llvm/Support/YAMLParser.h llvm/include/llvm/Support/YAMLTraits.h llvm/include/llvm/Support/raw_os_ostream.h llvm/include/llvm/Support/raw_ostream.h llvm/include/llvm/Support/raw_socket_stream.h llvm/include/llvm/Support/thread.h llvm/include/llvm/Support/xxhash.h llvm/lib/Support/Chrono.cpp llvm/lib/Support/CommandLine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 591c0a7f1..5489b3ff7 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -1104,8 +1104,8 @@ public:
extern template class LLVM_TEMPLATE_ABI basic_parser<unsigned long long>;
template <>
-class LLVM_ABI
- parser<unsigned long long> : public basic_parser<unsigned long long> {
+class LLVM_ABI parser<unsigned long long>
+ : public basic_parser<unsigned long long> {
public:
parser(Option &O) : basic_parser(O) {}
diff --git a/llvm/include/llvm/Support/VirtualFileSystem.h b/llvm/include/llvm/Support/VirtualFileSystem.h
index e47cd9cae..734b79572 100644
--- a/llvm/include/llvm/Support/VirtualFileSystem.h
+++ b/llvm/include/llvm/Support/VirtualFileSystem.h
@@ -1037,8 +1037,8 @@ private:
RedirectingFileSystem(IntrusiveRefCntPtr<FileSystem> ExternalFS);
// Explicitly non-copyable.
- RedirectingFileSystem(RedirectingFileSystem const&) = delete;
- RedirectingFileSystem& operator=(RedirectingFileSystem const&) = delete;
+ RedirectingFileSystem(RedirectingFileSystem const &) = delete;
+ RedirectingFileSystem &operator=(RedirectingFileSystem const &) = delete;
/// Looks up the path <tt>[Start, End)</tt> in \p From, possibly recursing
/// into the contents of \p From if it is a directory. Returns a LookupResult
``````````
</details>
https://github.com/llvm/llvm-project/pull/136014
More information about the llvm-commits
mailing list