@@ -2280,11 +2280,6 @@ def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
22802280
22812281 line = clean_lines .lines [linenum ]
22822282
2283- # "include" should use the new style "foo/bar.h" instead of just "bar.h"
2284- if _RE_PATTERN_INCLUDE_NEW_STYLE .search (line ):
2285- error (filename , linenum , 'build/include' , 4 ,
2286- 'Include the directory when naming .h files' )
2287-
22882283 # we shouldn't include a file more than once. actually, there are a
22892284 # handful of instances where doing so is okay, but in general it's
22902285 # not.
@@ -2826,15 +2821,6 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error,
28262821 if not line or line [0 ] == '#' :
28272822 continue
28282823
2829- # String is special -- it is a non-templatized type in STL.
2830- m = _RE_PATTERN_STRING .search (line )
2831- if m :
2832- # Don't warn about strings in non-STL namespaces:
2833- # (We check only the first match per line; good enough.)
2834- prefix = line [:m .start ()]
2835- if prefix .endswith ('std::' ) or not prefix .endswith ('::' ):
2836- required ['<string>' ] = (linenum , 'string' )
2837-
28382824 for pattern , template , header in _re_pattern_algorithm_header :
28392825 if pattern .search (line ):
28402826 required [header ] = (linenum , template )
0 commit comments