Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRFairhurst committed Jan 16, 2025
1 parent d23c035 commit 333cc77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ signature module MacroReportConfigSig<ResultType ResultElement> {
* string getMessageResultInIsolatedExpansion(InvalidFoo foo) {
* result = "Invocation of macro $@ has invalid foo '" + foo.getName() + "'."
* }
*
*
* string getMessageNotInMacro(ResultElement element) {
* result = "Invalid foo '" + element.getName() + "'."
* }
Expand Down Expand Up @@ -286,9 +286,7 @@ module DeduplicateMacroResults<
TReportMacroResultWithVariedName(PrimaryMacroDifferentResultElementInAllInvocations def) or
TReportIsolatedMacroResult(IsolatedMacroExpansionWithResultElement def) or
TReportNotInMacro(ResultElement def) {
not exists (ResultMacroExpansion macroExpansion |
macroExpansion.getResultElement() = def
)
not exists(ResultMacroExpansion macroExpansion | macroExpansion.getResultElement() = def)
}

/**
Expand Down Expand Up @@ -368,8 +366,8 @@ module DeduplicateMacroResults<
)
or
(
this = TReportMacroResultWithSameName(_)
or this = TReportNotInMacro(_)
this = TReportMacroResultWithSameName(_) or
this = TReportNotInMacro(_)
) and
result = "(ignored)"
or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ module ReportDeadObjectConfig implements MacroReportConfigSig<UnusedObjectDefini
}

string getMessageVariedResultInAllExpansions(Macro m) {
result = "Macro '" + m.getName() + "' defines unused object with an invocation-dependent name, for example, '$@'."
result =
"Macro '" + m.getName() +
"' defines unused object with an invocation-dependent name, for example, '$@'."
}

string getMessageResultInIsolatedExpansion(UnusedObjectDefinition unused) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ module FindMeReportConfig implements MacroReportConfigSig<FindMe> {
result = "Invocation of macro $@ has findme var '" + f.getName() + "'."
}

string getMessageNotInMacro(FindMe f) {
result = "Findme var '" + f.getName() + "'."

}
string getMessageNotInMacro(FindMe f) { result = "Findme var '" + f.getName() + "'." }
}

import DeduplicateMacroResults<FindMe, FindMeDedupeConfig>
Expand Down

0 comments on commit 333cc77

Please sign in to comment.