I've attached a patch which fixes a few punctuation errors and typos in the CommandLine class documentation. (Thanks for the documentation, by the way!)
Also, I was confused by one of the examples regarding the handling of
program-wide global options such as a debug flag. "DebugFlag" is the global
variable set by the parser; the following is given as an example of how you
would use it:
// DEBUG macro - This macro should be used by code to emit debug information.
// In the '-debug' option is specified on the command line, and if this is a
// debug build, then the code specified as the option to the macro will be
// executed. Otherwise it will not be. Example:
//
// DOUT << "Bitset contains: " << Bitset << "\n";
//
#ifdef NDEBUG
#define DEBUG(X)
#else
#define DEBUG(X) do { if (DebugFlag) { X; } } while (0)
#endif
I'm very new to LLVM, so I can only guess at how DOUT is related to DEBUG().
Is there another example that would be more straightforward?
Thanks,
Sam Bishop
CommandLine.html.patch
Description: Binary data
_______________________________________________ llvm-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
