From 90ecb62a9f522f01d74379097ac37533bde0f579 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Mon, 30 Jan 2012 19:34:23 +0000 Subject: [PATCH] Convert windows path seperators to unix like while doing IncludeWhatYouUse. Review URL: https://codereview.appspot.com/5601049 --- cpplint/cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index c985c5d..9c7b8b4 100755 --- a/cpplint/cpplint.py +++ b/cpplint/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