[llvm-branch-commits] [llvm] [compiler-rt] [lldb] [libc] [clang-tools-extra] [libcxxabi] [flang] [libcxx] [clang] [Clangd] Migrate command line options parsing to opttable. (PR #76767)

Andres Villegas via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 3 15:05:34 PST 2024


=?utf-8?q?Andrés?= Villegas <andresvi at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76767 at github.com>


https://github.com/avillega updated https://github.com/llvm/llvm-project/pull/76767

>From 787722d1b26003ff5ab4e197ae60874e4a6fbc40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9s=20Villegas?= <andresvi at google.com>
Date: Wed, 3 Jan 2024 00:07:13 +0000
Subject: [PATCH 1/2] Run git clang-format

Created using spr 1.3.5
---
 clang-tools-extra/clangd/tool/ClangdMain.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index ea122d1a585c84..ea155b8bf9435d 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -478,7 +478,6 @@ enum class ErrorResultCode : int {
   CheckFailed = 3
 };
 
-
 int clangdMain(int argc, char *argv[]) {
   // Clang could run on the main thread. e.g., when the flag '-check' or '-sync'
   // is enabled.

>From d242f164d69ec606db9418c02c9588bffa429928 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9s=20Villegas?= <andresvi at google.com>
Date: Wed, 3 Jan 2024 01:40:40 +0000
Subject: [PATCH 2/2] change uint to unsigned

Created using spr 1.3.5
---
 clang-tools-extra/clangd/tool/ClangdMain.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index ea155b8bf9435d..c846c7130e27c9 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -69,16 +69,16 @@
 namespace {
 
 #if defined(__GLIBC__) && CLANGD_MALLOC_TRIM
-static constexpr uint MallocTrimVis = (1 << 8);
+static constexpr unsigned MallocTrimVis = (1 << 8);
 #else
-static constexpr uint MallocTrimVis = 0;
+static constexpr unsigned MallocTrimVis = 0;
 #endif
 
 #if CLANGD_ENABLE_REMOTE
 // FIXME(kirillbobyrev): Should this be the location of compile_commands.json?
-static constexpr uint RemoteVis = (1 << 9);
+static constexpr unsigned RemoteVis = (1 << 9);
 #else
-static constexpr uint RemoteVis = 0;
+static constexpr unsigned RemoteVis = 0;
 #endif
 
 using namespace llvm;



More information about the llvm-branch-commits mailing list