We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acc42c5 + 78a23bb commit 3c896fdCopy full SHA for 3c896fd
scripts/cpplint.py
@@ -1967,7 +1967,9 @@ def GetHeaderGuardCPPVariable(filename):
1967
1968
fileinfo = FileInfo(filename)
1969
file_path_from_root = fileinfo.RepositoryName()
1970
- file_path_from_root = 'CPROVER_' + file_path_from_root[4:]
+ # Remove first path component
1971
+ offset=len(file_path_from_root.split(os.path.sep)[0])+1
1972
+ file_path_from_root = 'CPROVER_' + file_path_from_root[offset:]
1973
if _root:
1974
suffix = os.sep
1975
# On Windows using directory separator will leave us with
0 commit comments