This is an archive of the discontinued LLVM Phabricator instance.

Use FileSpec::IsRelativeToCurrentWorkingDirectory instead of llvm::sys::path::is_relative in PlatformAndroid::GetFile
ClosedPublic

Authored by ovyalov on May 29 2015, 3:34 PM.

Details

Reviewers
chaoren
Summary

Use FileSpec::IsRelativeToCurrentWorkingDirectory instead of llvm::sys::path::is_relative in PlatformAndroid::GetFile

Diff Detail

Event Timeline

ovyalov updated this revision to Diff 26827.May 29 2015, 3:34 PM
ovyalov retitled this revision from to Use FileSpec::IsRelativeToCurrentWorkingDirectory instead of llvm::sys::path::is_relative in PlatformAndroid::GetFile.
ovyalov updated this object.
ovyalov edited the test plan for this revision. (Show Details)
ovyalov added a reviewer: chaoren.
ovyalov added a subscriber: Unknown Object (MLST).
chaoren accepted this revision.May 29 2015, 3:41 PM
chaoren edited edge metadata.

LGTM, after these fixes

source/Plugins/Platform/Android/PlatformAndroid.cpp
217–219

Nit: I think we decided to stop having a space between the function name and the parenthesis.

219

s/GetPath (false).c_str ()/GetCString(false)/

This revision is now accepted and ready to land.May 29 2015, 3:41 PM
ovyalov added inline comments.May 29 2015, 3:46 PM
source/Plugins/Platform/Android/PlatformAndroid.cpp
217–219

Yes, for new code.
For existing code, I assume, we stick to existing file style - PlatformAndroid mostly uses spaces.

219

Done

ovyalov updated this revision to Diff 26828.May 29 2015, 3:47 PM
ovyalov edited edge metadata.

Review fixes.

ovyalov closed this revision.May 29 2015, 3:59 PM

AFFECTED FILES

/lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.cpp

USERS

ovyalov (Author)

http://reviews.llvm.org/rL238624