From 6a96ae5ecb90009aeca32add375cad4206b55bee Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 6 Feb 2015 18:36:04 +0000 Subject: ASTUnit: Use range-based for loops. llvm-svn: 228420 --- clang/lib/Serialization/ASTWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Serialization/ASTWriter.cpp') diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 3003e4b4770..41ef7ef2fc0 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -1062,7 +1062,8 @@ void ASTWriter::WriteBlockInfoBlock() { /// to an absolute path and removing nested './'s. /// /// \return \c true if the path was changed. -bool cleanPathForOutput(FileManager &FileMgr, SmallVectorImpl &Path) { +static bool cleanPathForOutput(FileManager &FileMgr, + SmallVectorImpl &Path) { bool Changed = false; if (!llvm::sys::path::is_absolute(StringRef(Path.data(), Path.size()))) { -- cgit v1.2.3