mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
docs: use consistent style for comment blocks
prefix comment blocks with ///
This commit is contained in:
@@ -11,17 +11,17 @@ static bool verbose = false;
|
||||
static StreamWrap<llvm::raw_ostream> errWrap(&llvm::errs());
|
||||
static StreamWrap<llvm::raw_ostream> nullWrap(&llvm::nulls());
|
||||
|
||||
// Returns a stream for logging errors
|
||||
/// Returns a stream for logging errors
|
||||
StreamWrap<llvm::raw_ostream> &log_error(void) { return errWrap; }
|
||||
|
||||
// Returns a stream that either shows or discards messages depending
|
||||
// on the setup through `setupLogging`.
|
||||
/// Returns a stream that either shows or discards messages depending
|
||||
/// on the setup through `setupLogging`.
|
||||
StreamWrap<llvm::raw_ostream> &log_verbose(void) {
|
||||
return (verbose) ? errWrap : nullWrap;
|
||||
}
|
||||
|
||||
// Sets up logging. If `verbose` is false, messages passed to
|
||||
// `log_verbose` will be discarded.
|
||||
/// Sets up logging. If `verbose` is false, messages passed to
|
||||
/// `log_verbose` will be discarded.
|
||||
void setupLogging(bool verbose) { ::mlir::concretelang::verbose = verbose; }
|
||||
bool isVerbose() { return verbose; }
|
||||
} // namespace concretelang
|
||||
|
||||
Reference in New Issue
Block a user