]> granicus.if.org Git - clang/commitdiff
[clang-format] Make FormatTokenLess::operator() const.
authorEric Liu <ioeric@google.com>
Wed, 18 May 2016 08:14:49 +0000 (08:14 +0000)
committerEric Liu <ioeric@google.com>
Wed, 18 May 2016 08:14:49 +0000 (08:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index f5e7a206a5601e573579d4974b79aafe3909716e..c31e618520aa7155faac052b5be051ebd3eadd43 100644 (file)
@@ -1938,7 +1938,7 @@ private:
   struct FormatTokenLess {
     FormatTokenLess(const SourceManager &SM) : SM(SM) {}
 
-    bool operator()(const FormatToken *LHS, const FormatToken *RHS) {
+    bool operator()(const FormatToken *LHS, const FormatToken *RHS) const {
       return SM.isBeforeInTranslationUnit(LHS->Tok.getLocation(),
                                           RHS->Tok.getLocation());
     }