Added some documentation for ForEachMacro.
authorSean Callanan <scallanan@apple.com>
Tue, 14 Apr 2015 18:50:05 +0000 (18:50 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 14 Apr 2015 18:50:05 +0000 (18:50 +0000)
llvm-svn: 234923

lldb/include/lldb/Expression/ClangModulesDeclVendor.h

index 1466027..5bc383d 100644 (file)
@@ -53,6 +53,14 @@ public:
     virtual bool
     AddModule(std::vector<llvm::StringRef> &path, Stream &error_stream) = 0;
     
+    //------------------------------------------------------------------
+    /// Enumerate all the macros that are currently visible.
+    ///
+    /// @param[in] handler
+    ///     A function that receives the text of each #define macro.
+    ///     If handler returns true, this function returns immediately,
+    ///     without calling handler again.
+    //------------------------------------------------------------------
     virtual void
     ForEachMacro(std::function<bool (const std::string &)> handler) = 0;
 };