diff options
author | Eric Liu <ioeric@google.com> | 2016-05-18 08:14:49 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-05-18 08:14:49 +0000 |
commit | 2874ac3e28cf6bd757f06f333878188824799c4a (patch) | |
tree | e70fd866f1a339a3acafc76f912d8ed9e438e8ae | |
parent | ce5e4bc7ac873bb99143b7c27601f7e27d15a37c (diff) | |
download | bcm5719-llvm-2874ac3e28cf6bd757f06f333878188824799c4a.tar.gz bcm5719-llvm-2874ac3e28cf6bd757f06f333878188824799c4a.zip |
[clang-format] Make FormatTokenLess::operator() const.
llvm-svn: 269889
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index f5e7a206a56..c31e618520a 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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()); } |