Fixing linter to work on Windows (ironically, by breaking it).
This commit is contained in:
parent
4b6f1882e7
commit
8a6807bd92
|
@ -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_
|
||||
|
|
|
@ -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() + '_'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue