Fixing linter to work on Windows (ironically, by breaking it).

This commit is contained in:
Ben Vanik 2014-07-11 18:43:35 -07:00
parent 4b6f1882e7
commit 8a6807bd92
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@
******************************************************************************
*/
#ifndef POLY_POLY_CXX_COMPAT_H_
#define POLY_POLY_CXX_COMPAT_H_
#ifndef POLY_CXX_COMPAT_H_
#define POLY_CXX_COMPAT_H_
#include <poly/config.h>
@ -24,4 +24,4 @@
namespace poly {} // namespace poly
#endif // POLY_POLY_CXX_COMPAT_H_
#endif // POLY_CXX_COMPAT_H_

View File

@ -1553,7 +1553,7 @@ def GetHeaderGuardCPPVariable(filename):
fileinfo = FileInfo(filename)
file_path_from_root = fileinfo.RepositoryName()
if _root:
file_path_from_root = re.sub('^' + _root + os.sep, '', file_path_from_root)
file_path_from_root = re.sub('^' + _root + '\/', '', file_path_from_root)
return re.sub(r'[-./\s]', '_', file_path_from_root).upper() + '_'