Skip to content

Commit

Permalink
Fix typo for hasAnyOverloadedOperatorName; NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
keishi authored and AaronBallman committed Nov 18, 2020
1 parent bcaa198 commit 871fe71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clang/docs/LibASTMatchersReference.html
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
Matches overloaded operator names specified in strings without the
"operator" prefix: e.g. "&lt;&lt;".

hasAnyOverloadesOperatorName("+", "-")
hasAnyOverloadedOperatorName("+", "-")
Is equivalent to
anyOf(hasOverloadedOperatorName("+"), hasOverloadedOperatorName("-"))
</pre></td></tr>
Expand Down Expand Up @@ -3400,7 +3400,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
Matches overloaded operator names specified in strings without the
"operator" prefix: e.g. "&lt;&lt;".

hasAnyOverloadesOperatorName("+", "-")
hasAnyOverloadedOperatorName("+", "-")
Is equivalent to
anyOf(hasOverloadedOperatorName("+"), hasOverloadedOperatorName("-"))
</pre></td></tr>
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/ASTMatchers/ASTMatchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -2825,7 +2825,7 @@ hasOverloadedOperatorName(StringRef Name) {
/// Matches overloaded operator names specified in strings without the
/// "operator" prefix: e.g. "<<".
///
/// hasAnyOverloadesOperatorName("+", "-")
/// hasAnyOverloadedOperatorName("+", "-")
/// Is equivalent to
/// anyOf(hasOverloadedOperatorName("+"), hasOverloadedOperatorName("-"))
extern const internal::VariadicFunction<
Expand Down

0 comments on commit 871fe71

Please sign in to comment.