From 8f927567f9310cc568697bd53d53c4aff8665565 Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Mon, 30 Jan 2012 19:51:28 +0000 Subject: [PATCH] Upstream cpplint.py r79 ("Convert windows path seperators to unix like while doing IncludeWhatYouUse.") Review URL: http://codereview.chromium.org/9159036 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@119713 0039d316-1c4b-4281-b951-d872f2087c98 --- cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint.py b/cpplint.py index c985c5dc5f..9c7b8b48ee 100755 --- a/cpplint.py +++ b/cpplint.py @@ -3054,7 +3054,7 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, header_found = False # Use the absolute path so that matching works properly. - abs_filename = os.path.abspath(filename) + abs_filename = FileInfo(filename).FullName() # For Emacs's flymake. # If cpplint is invoked from Emacs's flymake, a temporary file is generated