Skip to content

Commit 6da34a8

Browse files
committed
FileCheckPattern::FindRegexVarEnd - make helper function static. NFC
Fixes cppcheck warning.
1 parent 0026251 commit 6da34a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Support/FileCheckImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,10 @@ class FileCheckPattern {
523523
/// Finds the closing sequence of a regex variable usage or definition.
524524
///
525525
/// \p Str has to point in the beginning of the definition (right after the
526-
/// opening sequence). \p SM holds the SourceMgr used for error repporting.
526+
/// opening sequence). \p SM holds the SourceMgr used for error reporting.
527527
/// \returns the offset of the closing sequence within Str, or npos if it
528528
/// was not found.
529-
size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
529+
static size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
530530

531531
/// Parses \p Expr for the name of a numeric variable to be defined at line
532532
/// \p LineNumber, or before input is parsed if \p LineNumber is None.

0 commit comments

Comments
 (0)