From d420095c7505c79baebeeb1d613d27299566b6ba Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Wed, 8 Nov 2017 13:17:45 -0500 Subject: [PATCH] Revert "cpplint: Fix --root for non-subdirectories" --- cpplint/cpplint.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 73bf16a..52cb7d0 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -1777,8 +1777,6 @@ def GetHeaderGuardCPPVariable(filename): fileinfo = FileInfo(filename) file_path_from_root = fileinfo.RepositoryName() if _root: - file_path_from_root = fileinfo.FullName() - suffix = os.sep # On Windows using directory separator will leave us with # "bogus escape error" unless we properly escape regex.