Skip to content

Commit

Permalink
Revert "cpplint: Fix --root for non-subdirectories"
Browse files Browse the repository at this point in the history
  • Loading branch information
markmentovai authored Nov 8, 2017
1 parent 81ceafc commit d420095
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cpplint/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d420095

Please sign in to comment.