FileCheckPattern::FindRegexVarEnd - make helper function static. NFC
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 12 Nov 2019 11:14:03 +0000 (11:14 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 12 Nov 2019 11:14:19 +0000 (11:14 +0000)
Fixes cppcheck warning.

llvm/lib/Support/FileCheckImpl.h

index eee653a..a2a056c 100644 (file)
@@ -523,10 +523,10 @@ private:
   /// Finds the closing sequence of a regex variable usage or definition.
   ///
   /// \p Str has to point in the beginning of the definition (right after the
-  /// opening sequence). \p SM holds the SourceMgr used for error repporting.
+  /// opening sequence). \p SM holds the SourceMgr used for error reporting.
   ///  \returns the offset of the closing sequence within Str, or npos if it
   /// was not found.
-  size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
+  static size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
 
   /// Parses \p Expr for the name of a numeric variable to be defined at line
   /// \p LineNumber, or before input is parsed if \p LineNumber is None.