Skip to content

Commit

Permalink
Merge pull request google#289 from iam/gh-pages
Browse files Browse the repository at this point in the history
cpplint: Fix --root for non-subdirectories
  • Loading branch information
markmentovai authored Nov 8, 2017
2 parents ec88ff9 + a38fcbb commit 81ceafc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpplint/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,8 @@ 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 81ceafc

Please sign in to comment.