mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Fixed --root option under Windows
This commit is contained in:
parent
9012f893a1
commit
bdf4cfe0d8
2
cpplint/cpplint.py
vendored
2
cpplint/cpplint.py
vendored
|
@ -1860,7 +1860,7 @@ def GetHeaderGuardCPPVariable(filename):
|
|||
|
||||
# --root=.. , will prepend the outer directory to the header guard
|
||||
full_path = fileinfo.FullName()
|
||||
root_abspath = os.path.abspath(_root)
|
||||
root_abspath = os.path.abspath(_root).replace('\\', '/')
|
||||
|
||||
maybe_path = StripListPrefix(PathSplitToList(full_path),
|
||||
PathSplitToList(root_abspath))
|
||||
|
|
Loading…
Reference in New Issue
Block a user