Lines Matching full:commentpos
979 commentpos = line.find('//')
980 if commentpos != -1 and not IsCppString(line[:commentpos]):
981 line = line[:commentpos].rstrip()
2294 commentpos = line.find('//')
2295 if commentpos != -1:
2298 if (line.count('"', 0, commentpos) -
2299 line.count('\\"', 0, commentpos)) % 2 == 0: # not in quotes
2302 ((commentpos >= 1 and
2303 line[commentpos-1] not in string.whitespace) or
2304 (commentpos >= 2 and
2305 line[commentpos-2] not in string.whitespace))):
2309 commentend = commentpos + 2
2324 CheckComment(line[commentpos:], filename, linenum, error)