Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Oct 24, 2022
1 parent 6d9b8d9 commit 9f37121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/parser/ParserDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ std::set<RelationTag> ParserDriver::addDeprecatedTag(

Own<ast::Counter> ParserDriver::addDeprecatedCounter(SrcLocation tagLoc) {
if (!Global::config().has("legacy")) {
warning(WarnType::DollarSign, tagLoc, "Deprecated $ symbol was used. Use functor 'autoinc()' instead.");
warning(WarnType::DollarSign, tagLoc,
"Deprecated $ symbol was used. Use functor 'autoinc()' instead.");
}
return mk<ast::Counter>();
}
Expand Down Expand Up @@ -250,7 +251,7 @@ Own<ast::SubsetType> ParserDriver::mkDeprecatedSubType(
}

void ParserDriver::warning(const WarnType type, const SrcLocation& loc, const std::string& msg) {
translationUnit->getErrorReport().addWarning(type, msg, loc);
translationUnit->getErrorReport().addWarning(type, msg, loc);
}
void ParserDriver::error(const SrcLocation& loc, const std::string& msg) {
translationUnit->getErrorReport().addError(msg, loc);
Expand Down
2 changes: 1 addition & 1 deletion src/parser/ParserDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ParserDriver {
static Own<ast::TranslationUnit> parseTranslationUnit(
const std::string& code, ErrorReport& errorReport, DebugReport& debugReport);

void warning(const WarnType warn, const SrcLocation& loc, const std::string& msg);
void warning(const WarnType warn, const SrcLocation& loc, const std::string& msg);
void error(const SrcLocation& loc, const std::string& msg);
void error(const std::string& msg);

Expand Down

0 comments on commit 9f37121

Please sign in to comment.