[llvm] 6da34a8 - FileCheckPattern::FindRegexVarEnd - make helper function static. NFC

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 03:15:01 PST 2019


Author: Simon Pilgrim
Date: 2019-11-12T11:14:19Z
New Revision: 6da34a8b847f2c858f421278a38dd343d2e8507b

URL: https://github.com/llvm/llvm-project/commit/6da34a8b847f2c858f421278a38dd343d2e8507b
DIFF: https://github.com/llvm/llvm-project/commit/6da34a8b847f2c858f421278a38dd343d2e8507b.diff

LOG: FileCheckPattern::FindRegexVarEnd - make helper function static. NFC

Fixes cppcheck warning.

Added: 
    

Modified: 
    llvm/lib/Support/FileCheckImpl.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/FileCheckImpl.h b/llvm/lib/Support/FileCheckImpl.h
index eee653a3b32a..a2a056c018f9 100644
--- a/llvm/lib/Support/FileCheckImpl.h
+++ b/llvm/lib/Support/FileCheckImpl.h
@@ -523,10 +523,10 @@ class FileCheckPattern {
   /// 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.


        


More information about the llvm-commits mailing list