/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2013-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.
* limitations under the License.
*/
-#ifndef FOLLY_SYMBOLIZER_LINEREADER_H_
-#define FOLLY_SYMBOLIZER_LINEREADER_H_
+#pragma once
#include <cstddef>
#include <folly/Range.h>
-namespace folly { namespace symbolizer {
+namespace folly {
+namespace symbolizer {
/**
* Async-signal-safe line reader.
enum State {
kReading,
kEof,
- kError
+ kError,
};
/**
* Read the next line from the file.
char* end_;
State state_;
};
-
-}} // namespaces
-
-#endif /* FOLLY_SYMBOLIZER_LINEREADER_H_ */
-
+} // namespace symbolizer
+} // namespace folly