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