mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-13 22:16:27 +00:00
Revert "cpplint: Fix --root for non-subdirectories"
This commit is contained in:
1 parent
81ceafcd9d
commit
d420095c75
1 file changed
-2
Vendored
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user