https://github.com/Michael137 created 
https://github.com/llvm/llvm-project/pull/181795

The [LLVM coding style
guide](https://llvm.org/docs/CodingStandards.html#error-and-warning-messages) 
says:

> start the first sentence with a lowercase letter, and finish the last sentence
> without a period

This patch updates the erorr messages added in 
https://github.com/llvm/llvm-project/pull/179208 accordingly.

(addresses 
https://github.com/llvm/llvm-project/pull/179208#issuecomment-3912273053)

>From e7dfb4af96185c7349bf7ef1287f693b5c6a38a5 Mon Sep 17 00:00:00 2001
From: Michael Buch <[email protected]>
Date: Tue, 17 Feb 2026 10:03:52 +0000
Subject: [PATCH] [lldb][Target][NFC] Update error messages according to
 LLVM-coding style

The [LLVM coding style
guide](https://llvm.org/docs/CodingStandards.html#error-and-warning-messages) 
says:

> start the first sentence with a lowercase letter, and finish the last sentence
> without a period

This patch updates the erorr messages added in 
https://github.com/llvm/llvm-project/pull/179208 accordingly.

(addresses 
https://github.com/llvm/llvm-project/pull/179208#issuecomment-3912273053)
---
 lldb/source/Target/Target.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 07c3653782c6b..f1560a1e74259 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -5380,13 +5380,13 @@ llvm::Error
 EvaluateExpressionOptions::SetBooleanLanguageOption(llvm::StringRef 
option_name,
                                                     bool value) {
   if (option_name.empty())
-    return llvm::createStringError("Can't set an option with an empty name.");
+    return llvm::createStringError("can't set an option with an empty name");
 
   if (StructuredData::ObjectSP existing_sp =
           GetLanguageOptions().GetValueForKey(option_name);
       existing_sp && existing_sp->GetType() != eStructuredDataTypeBoolean)
-    return llvm::createStringErrorV("Trying to override existing option '{0}' "
-                                    "of type '{1}' with a boolean value.",
+    return llvm::createStringErrorV("trying to override existing option '{0}' "
+                                    "of type '{1}' with a boolean value",
                                     option_name, existing_sp->GetType());
 
   GetLanguageOptions().AddBooleanItem(option_name, value);
@@ -5399,12 +5399,11 @@ llvm::Expected<bool> 
EvaluateExpressionOptions::GetBooleanLanguageOption(
   const StructuredData::Dictionary &opts = GetLanguageOptions();
 
   if (!opts.HasKey(option_name))
-    return llvm::createStringErrorV("Option '{0}' does not exist.",
-                                    option_name);
+    return llvm::createStringErrorV("option '{0}' does not exist", 
option_name);
 
   bool result;
   if (!opts.GetValueForKeyAsBoolean(option_name, result))
-    return llvm::createStringErrorV("Failed to get option '{0}' as boolean.",
+    return llvm::createStringErrorV("failed to get option '{0}' as boolean",
                                     option_name);
 
   return result;

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to