forked from OSchip/llvm-project
[flang] Reformatting and some comment clean-up.
Original-commit: flang-compiler/f18@cedd3d82cf Reviewed-on: https://github.com/flang-compiler/f18/pull/11
This commit is contained in:
parent
7af9dd8736
commit
a60d201dc9
|
@ -8,9 +8,9 @@
|
||||||
// library used here to implement an LL recursive descent recognizer.
|
// library used here to implement an LL recursive descent recognizer.
|
||||||
|
|
||||||
#include "basic-parsers.h"
|
#include "basic-parsers.h"
|
||||||
#include "token-parsers.h"
|
|
||||||
#include "format-specification.h"
|
#include "format-specification.h"
|
||||||
#include "parse-tree.h"
|
#include "parse-tree.h"
|
||||||
|
#include "token-parsers.h"
|
||||||
#include "user-state.h"
|
#include "user-state.h"
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
|
||||||
// Avoid a deduction bug in GNU 7.1.0 headers by forcing the answer.
|
// Avoid a deduction bug in GNU 7.3.0 headers by forcing the answer.
|
||||||
// TODO: better resolution
|
// TODO: better resolution
|
||||||
namespace std {
|
namespace std {
|
||||||
template<typename A>
|
template<typename A>
|
||||||
|
|
|
@ -36,8 +36,7 @@ public:
|
||||||
strictConformance_{that.strictConformance_},
|
strictConformance_{that.strictConformance_},
|
||||||
warnOnNonstandardUsage_{that.warnOnNonstandardUsage_},
|
warnOnNonstandardUsage_{that.warnOnNonstandardUsage_},
|
||||||
warnOnDeprecatedUsage_{that.warnOnDeprecatedUsage_},
|
warnOnDeprecatedUsage_{that.warnOnDeprecatedUsage_},
|
||||||
anyErrorRecovery_{that.anyErrorRecovery_} {
|
anyErrorRecovery_{that.anyErrorRecovery_} {}
|
||||||
}
|
|
||||||
ParseState(ParseState &&that)
|
ParseState(ParseState &&that)
|
||||||
: cooked_{that.cooked_}, p_{that.p_}, limit_{that.limit_},
|
: cooked_{that.cooked_}, p_{that.p_}, limit_{that.limit_},
|
||||||
column_{that.column_}, messages_{std::move(that.messages_)},
|
column_{that.column_}, messages_{std::move(that.messages_)},
|
||||||
|
@ -48,8 +47,7 @@ public:
|
||||||
strictConformance_{that.strictConformance_},
|
strictConformance_{that.strictConformance_},
|
||||||
warnOnNonstandardUsage_{that.warnOnNonstandardUsage_},
|
warnOnNonstandardUsage_{that.warnOnNonstandardUsage_},
|
||||||
warnOnDeprecatedUsage_{that.warnOnDeprecatedUsage_},
|
warnOnDeprecatedUsage_{that.warnOnDeprecatedUsage_},
|
||||||
anyErrorRecovery_{that.anyErrorRecovery_} {
|
anyErrorRecovery_{that.anyErrorRecovery_} {}
|
||||||
}
|
|
||||||
ParseState &operator=(ParseState &&that) {
|
ParseState &operator=(ParseState &&that) {
|
||||||
swap(that);
|
swap(that);
|
||||||
return *this;
|
return *this;
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
// Parse tree node class types do not have default constructors. They
|
// Parse tree node class types do not have default constructors. They
|
||||||
// explicitly declare "T() {} = delete;" to make this clear. This restriction
|
// explicitly declare "T() {} = delete;" to make this clear. This restriction
|
||||||
// avoids what would otherwise become a viral requirement to include
|
// prevents the introduction of what would be a viral requirement to include
|
||||||
// std::monostate among most std::variant<> discriminated union members.
|
// std::monostate among most std::variant<> discriminated union members.
|
||||||
|
|
||||||
// Parse tree node class types do not have copy constructors or copy assignment
|
// Parse tree node class types do not have copy constructors or copy assignment
|
||||||
|
|
|
@ -414,8 +414,7 @@ struct ConsumedAllInputParser {
|
||||||
}
|
}
|
||||||
} consumedAllInput;
|
} consumedAllInput;
|
||||||
|
|
||||||
template<char goal>
|
template<char goal> struct SkipPast {
|
||||||
struct SkipPast {
|
|
||||||
using resultType = Success;
|
using resultType = Success;
|
||||||
constexpr SkipPast() {}
|
constexpr SkipPast() {}
|
||||||
constexpr SkipPast(const SkipPast &) {}
|
constexpr SkipPast(const SkipPast &) {}
|
||||||
|
|
Loading…
Reference in New Issue