[clang-tidy] Add `const` to operator() to fix a warning.

llvm-svn: 304583
This commit is contained in:
Alexander Kornienko 2017-06-02 18:47:50 +00:00
parent 63f056327d
commit a49cfef414
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace misc {
class LambdaFunctionNameCheck : public ClangTidyCheck {
public:
struct SourceRangeLessThan {
bool operator()(const SourceRange &L, const SourceRange &R) {
bool operator()(const SourceRange &L, const SourceRange &R) const {
if (L.getBegin() == R.getBegin()) {
return L.getEnd() < R.getEnd();
}