Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
prithayan committed Dec 4, 2024
1 parent 9d3c60a commit f57693f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/circt/Dialect/FIRRTL/FIRParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ constexpr FIRVersion missingSpecFIRVersion = nextFIRVersion;
/// version, since it contains any new developments.
constexpr FIRVersion exportFIRVersion = nextFIRVersion;

template <typename T> T &operator<<(T &os, FIRVersion version) {
template <typename T>
T &operator<<(T &os, FIRVersion version) {
return os << version.major << "." << version.minor << "." << version.patch;
}

Expand Down
6 changes: 4 additions & 2 deletions lib/Dialect/FIRRTL/Import/FIRParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ struct FIRParser {
ParseResult parseVersionLit(const Twine &message);

// Parse ('<' intLit '>')? setting result to -1 if not present.
template <typename T> ParseResult parseOptionalWidth(T &result);
template <typename T>
ParseResult parseOptionalWidth(T &result);

// Parse the 'id' grammar, which is an identifier or an allowed keyword.
ParseResult parseId(StringRef &result, const Twine &message);
Expand Down Expand Up @@ -682,7 +683,8 @@ ParseResult FIRParser::parseVersionLit(const Twine &message) {
// optional-width ::= ('<' intLit '>')?
//
// This returns with result equal to -1 if not present.
template <typename T> ParseResult FIRParser::parseOptionalWidth(T &result) {
template <typename T>
ParseResult FIRParser::parseOptionalWidth(T &result) {
if (!consumeIf(FIRToken::less))
return result = -1, success();

Expand Down

0 comments on commit f57693f

Please sign in to comment.