r303250 - Constify.

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 05:09:11 PDT 2017


Author: vvassilev
Date: Wed May 17 07:09:11 2017
New Revision: 303250

URL: http://llvm.org/viewvc/llvm-project?rev=303250&view=rev
Log:
Constify.

Modified:
    cfe/trunk/include/clang/Basic/SourceManager.h

Modified: cfe/trunk/include/clang/Basic/SourceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceManager.h?rev=303250&r1=303249&r2=303250&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Wed May 17 07:09:11 2017
@@ -865,7 +865,7 @@ public:
                             const FileEntry *NewFile);
 
   /// \brief Returns true if the file contents have been overridden.
-  bool isFileOverridden(const FileEntry *File) {
+  bool isFileOverridden(const FileEntry *File) const {
     if (OverriddenFilesInfo) {
       if (OverriddenFilesInfo->OverriddenFilesWithBuffer.count(File))
         return true;




More information about the cfe-commits mailing list