[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 23:56:41 PDT 2024


================
@@ -1681,6 +1681,15 @@ enum class InlayHintKind {
   /// This is a clangd extension.
   BlockEnd = 4,
 
+  /// An inlay hint that is for a default argument.
+  ///
+  /// An example of a parameter hint for a default argument:
+  ///    void foo(bool A = true);
+  ///    foo(^);
+  /// Adds an inlay hint "A = true".
----------------
HighCommander4 wrote:

Update comment to `A: true`

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


More information about the cfe-commits mailing list