[clang-tools-extra] r325486 - [clangd] Mark non-changing fields of CppFile as const. NFC
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 19 03:15:33 PST 2018
Author: ibiryukov
Date: Mon Feb 19 03:15:33 2018
New Revision: 325486
URL: http://llvm.org/viewvc/llvm-project?rev=325486&view=rev
Log:
[clangd] Mark non-changing fields of CppFile as const. NFC
Modified:
clang-tools-extra/trunk/clangd/ClangdUnit.h
Modified: clang-tools-extra/trunk/clangd/ClangdUnit.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.h?rev=325486&r1=325485&r2=325486&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.h (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.h Mon Feb 19 03:15:33 2018
@@ -155,8 +155,8 @@ private:
IntrusiveRefCntPtr<vfs::FileSystem> FS,
llvm::MemoryBuffer &ContentsBuffer) const;
- Path FileName;
- bool StorePreamblesInMemory;
+ const Path FileName;
+ const bool StorePreamblesInMemory;
/// The last parsed AST.
llvm::Optional<ParsedAST> AST;
More information about the cfe-commits
mailing list