================
@@ -42,6 +42,58 @@ class PCHContainerReader;
 
 namespace serialization {
 
+/// The result of attempting to add a new module.
+class AddModuleResult {
+public:
+  enum Kind {
+    /// The module file had already been loaded.
+    AlreadyLoaded,
+    /// The module file was just loaded in response to this call.
+    NewlyLoaded,
+    /// The module file is missing.
+    Missing,
+    /// The module file is out-of-date.
+    OutOfDate
+  };
+  Kind K;
----------------
qiongsiwu wrote:

Nit: Do we need to worry about `K` being uninitialized by default? I can see 
that we don't have a good default initialization choice from `Kind`'s 
enumerators. If we need, maybe we can add something like `Unknown = 0` at the 
top and default initialize `K` to `Unknown`? 

https://github.com/llvm/llvm-project/pull/190203
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to