r253853 - [Driver] Mark isForDiagnostics as const. NFC.

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 22 22:40:49 PST 2015


Author: vedantk
Date: Mon Nov 23 00:40:49 2015
New Revision: 253853

URL: http://llvm.org/viewvc/llvm-project?rev=253853&view=rev
Log:
[Driver] Mark isForDiagnostics as const. NFC.

Modified:
    cfe/trunk/include/clang/Driver/Compilation.h

Modified: cfe/trunk/include/clang/Driver/Compilation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Compilation.h?rev=253853&r1=253852&r2=253853&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Compilation.h (original)
+++ cfe/trunk/include/clang/Driver/Compilation.h Mon Nov 23 00:40:49 2015
@@ -193,7 +193,7 @@ public:
   void initCompilationForDiagnostics();
 
   /// Return true if we're compiling for diagnostics.
-  bool isForDiagnostics() { return ForDiagnostics; }
+  bool isForDiagnostics() const { return ForDiagnostics; }
 };
 
 } // end namespace driver




More information about the cfe-commits mailing list