/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Implements two commands: "cat" and "echo", which behave similarly to their
// Unix homonyms.
-#include <folly/String.h>
#include <folly/ScopeGuard.h>
+#include <folly/String.h>
#include <folly/experimental/NestedCommandLineApp.h>
#include <folly/experimental/ProgramOptions.h>
size_t lineNumber_ = 0;
};
-FOLLY_NORETURN void throwOutputError() {
+[[noreturn]] void throwOutputError() {
throw OutputError(folly::errnoStr(errno).toStdString());
}
-FOLLY_NORETURN void throwInputError() {
+[[noreturn]] void throwInputError() {
throw InputError(folly::errnoStr(errno).toStdString());
}
}
}
-} // namespace
+} // namespace
int main(int argc, char *argv[]) {
// Initialize a NestedCommandLineApp object.