From 6cde4f104237ca87a68332511a64a4dcd5bd1edf Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 18 May 2016 08:14:49 +0000 Subject: [PATCH] [clang-format] Make FormatTokenLess::operator() const. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269889 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index f5e7a206a5..c31e618520 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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()); } -- 2.40.0