mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Merge pull request #290 from google/revert-289-gh-pages
Revert "cpplint: Fix --root for non-subdirectories"
This commit is contained in:
commit
66f0d44381
2
cpplint/cpplint.py
vendored
2
cpplint/cpplint.py
vendored
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user