[clang] [clang][docs] Add documentation for APValue constructors (PR #109994)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 1 17:08:53 PDT 2024


================
@@ -314,51 +314,91 @@ class APValue {
   DataType Data;
 
 public:
+  /// Creates an empty APValue of type None.
   APValue() : Kind(None) {}
+  /// Creates an integer APValue holding the given value.
   explicit APValue(APSInt I) : Kind(None) {
     MakeInt(); setInt(std::move(I));
   }
+  /// Creates a float APValue holding the given value.
   explicit APValue(APFloat F) : Kind(None) {
     MakeFloat(); setFloat(std::move(F));
   }
+  /// Creates an fixed-point APValue holding the given value.
----------------
Sirraide wrote:

```suggestion
  /// Creates a fixed-point APValue holding the given value.
```
typo

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


More information about the cfe-commits mailing list